alpharush 8 months ago
parent d592e76dea
commit 801a13e600
  1. 9
      tests/e2e/detectors/test_data/constable-states/0.8.0/const_state_variables.sol
  2. BIN
      tests/e2e/detectors/test_data/constable-states/0.8.0/const_state_variables.sol-0.8.0.zip

@ -66,7 +66,7 @@ contract Good {
uint immutable should_be_immutable_3 = 10 + block.number;
B immutable should_be_immutable_4 = new B();
uint immutable should_be_immutable_5;
uint blobBaseFee;
constructor(uint b) {
should_be_immutable_5 = b;
}
@ -74,5 +74,10 @@ contract Good {
function getNumber() public returns(uint){
return block.number;
}
function updateBlobBaseFee(uint _blobBaseFee) public {
assembly {
sstore(blobBaseFee.slot, _blobBaseFee)
}
}
}
Loading…
Cancel
Save