Skip to content

Commit

Permalink
fix: generate genesis slot
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi committed Sep 25, 2024
1 parent 8d52534 commit b2c7b5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/deterministic/GenerateGenesis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ contract GenerateGenesis is DeployScroll {
bytes32 _recipientSlot = hex"0000000000000000000000000000000000000000000000000000000000000003";
vm.store(predeployAddr, _recipientSlot, vm.load(_vaultAddr, _recipientSlot));

bytes32 _ETHGatewaySlot = hex"0000000000000000000000000000000000000000000000000000000000000005";
vm.store(predeployAddr, _ETHGatewaySlot, vm.load(_vaultAddr, _ETHGatewaySlot));

// reset so its not included state dump
vm.etch(address(_vaultAddr), "");
vm.resetNonce(address(_vaultAddr));
Expand Down

0 comments on commit b2c7b5e

Please sign in to comment.