Tests and Changelog for basefee.

This commit is contained in:
hrkrshnn
2021-08-11 09:51:12 +02:00
parent cb9b52c242
commit 43605d9299
6 changed files with 62 additions and 1 deletions
@@ -0,0 +1,13 @@
contract C {
function f() public pure {
assembly { pop(basefee()) }
}
function g() public pure returns (uint) {
return block.basefee;
}
}
// ====
// EVMVersion: >=london
// ----
// TypeError 2527: (67-76): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".
// TypeError 2527: (147-160): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".