solidity/test/libsolidity/semanticTests/state/block_basefee.sol

19 lines
322 B
Solidity
Raw Normal View History

2021-07-12 14:51:56 +00:00
contract C {
function f() public view returns (uint) {
return block.basefee;
}
function g() public view returns (uint ret) {
assembly {
ret := basefee()
}
}
}
// ====
// EVMVersion: >=london
// compileViaYul: also
// ----
// f() -> 7
// g() -> 7
// f() -> 7
// g() -> 7