diff --git a/contracts-bedrock/.gas-snapshot b/contracts-bedrock/.gas-snapshot index adedd649b8761..bdef81c0d1e94 100644 --- a/contracts-bedrock/.gas-snapshot +++ b/contracts-bedrock/.gas-snapshot @@ -3,7 +3,8 @@ L1BlockTest:test_basefee() (gas: 7575) L1BlockTest:test_hash() (gas: 7552) L1BlockTest:test_number() (gas: 7651) L1BlockTest:test_sequenceNumber() (gas: 7585) -L1BlockTest:test_timestamp() (gas: 7661) +L1BlockTest:test_timestamp() (gas: 7683) +L1BlockTest:test_updateValues() (gas: 28215) L1BlockNumberTest:test_fallback() (gas: 10755) L1BlockNumberTest:test_getL1BlockNumber() (gas: 10589) L1BlockNumberTest:test_receive() (gas: 17418) diff --git a/contracts-bedrock/contracts/test/L1Block.t.sol b/contracts-bedrock/contracts/test/L1Block.t.sol index d3bd8cbd6860b..d89d18fa3577f 100644 --- a/contracts-bedrock/contracts/test/L1Block.t.sol +++ b/contracts-bedrock/contracts/test/L1Block.t.sol @@ -45,4 +45,9 @@ contract L1BlockTest is CommonTest { function test_sequenceNumber() external { assertEq(lb.sequenceNumber(), uint64(4)); } + + function test_updateValues() external { + vm.prank(depositor); + lb.setL1BlockValues(type(uint64).max, type(uint64).max, type(uint256).max, keccak256(abi.encode(1)), type(uint64).max); + } }