Skip to content

Commit

Permalink
update rollup to init the state root map
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukoomomo committed Nov 20, 2024
1 parent 836e4a4 commit 12496af
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings/bin/rollup_deployed.hex

Large diffs are not rendered by default.

25 changes: 23 additions & 2 deletions bindings/bindings/rollup.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/bindings/rollup_more.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/contracts/l1/rollup/Rollup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ contract Rollup is IRollup, OwnableUpgradeable, PausableUpgradeable {

function initialize2(bytes32 _prevStateRoot) external reinitializer(2) {
require(_getInitializedVersion() == 2, "must have initialized!");
require(_prevStateRoot != bytes32(0), "can not set stateroot with bytes32(0)!");
require(_prevStateRoot != bytes32(0), "can not set state root with bytes32(0)!");

if (committedStateRoots[lastCommittedBatchIndex] == bytes32(0)) {
committedStateRoots[lastCommittedBatchIndex] = _prevStateRoot;
Expand Down

0 comments on commit 12496af

Please sign in to comment.