solidity/test/libsolidity/semanticTests/state/block_basefee.sol
2021-08-11 09:51:12 +02:00

19 lines
322 B
Solidity

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