From ebba67044df3b48ea8d63910537e04b9312100c1 Mon Sep 17 00:00:00 2001 From: angel-ding-cb Date: Thu, 14 Mar 2024 12:56:43 -0500 Subject: [PATCH] wip: updated storage slots --- packages/contracts-bedrock/src/L2/L1Block.sol | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/contracts-bedrock/src/L2/L1Block.sol b/packages/contracts-bedrock/src/L2/L1Block.sol index 14a7ff273d61..3a23f4e2b727 100644 --- a/packages/contracts-bedrock/src/L2/L1Block.sol +++ b/packages/contracts-bedrock/src/L2/L1Block.sol @@ -138,14 +138,14 @@ contract L1Block is ISemver { mstore(0x00, 0x3cc50b45) // 0x3cc50b45 is the 4-byte selector of "NotDepositor()" revert(0x1C, 0x04) // returns the stored 4-byte selector from above } - // sequencenum (uint64), blobBaseFeeScalar (uint32), baseFeeScalar (uint32), costTxSizeCoef (int32), costFastlzCoef (int32), costIntercept (int32) - sstore(sequenceNumber.slot, or(shr(128, calldataload(4)), shl(128, shr(160, calldataload(164))))) + // sequencenum (uint64), blobBaseFeeScalar (uint32), baseFeeScalar (uint32) + sstore(sequenceNumber.slot, shr(128, calldataload(4))) // number (uint64) and timestamp (uint64) sstore(number.slot, shr(128, calldataload(20))) - sstore(basefee.slot, calldataload(36)) // uint256 - sstore(blobBaseFee.slot, calldataload(68)) // uint256 - sstore(hash.slot, calldataload(100)) // bytes32 - sstore(batcherHash.slot, calldataload(132)) // bytes32 + sstore(basefee.slot, calldataload(36)) // uint256 basefee + sstore(blobBaseFee.slot, calldataload(68)) // uint256 blobBaseFee + sstore(hash.slot, calldataload(100)) // bytes32 hash + sstore(batcherHash.slot, calldataload(132)) // bytes32 batcherHash } } }