Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leafCount #304

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/v2/PolygonZkEVMGlobalExitRootV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract PolygonZkEVMGlobalExitRootV2 is
address public immutable rollupManager;

// Store every l1InfoLeaf
mapping(uint32 leafIndex => bytes32 l1InfoRoot) public l1InfoRootMap;
mapping(uint32 leafCount => bytes32 l1InfoRoot) public l1InfoRootMap;

/**
* @dev Emitted when the global exit root is updated
Expand All @@ -38,15 +38,15 @@ contract PolygonZkEVMGlobalExitRootV2 is
*/
event UpdateL1InfoTreeV2(
bytes32 currentL1InfoRoot,
uint32 indexed leafIndex,
uint32 indexed leafCount,
uint256 blockhash,
uint64 minTimestamp
);

/**
* @dev Emitted when the global exit root manager starts adding leafs to the L1InfoRootMap
*/
event InitL1InfoRootMap(uint32 leafIndex, bytes32 currentL1InfoRoot);
event InitL1InfoRootMap(uint32 leafCount, bytes32 currentL1InfoRoot);

/**
* @param _rollupManager Rollup manager contract address
Expand Down
Loading