solidity/test/libsolidity/semanticTests/state/block_basefee.sol
2022-05-19 20:23:28 +02:00

18 lines
299 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
// ----
// f() -> 7
// g() -> 7
// f() -> 7
// g() -> 7