Skip to content

Commit

Permalink
rename depositCount to leafIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jul 10, 2024
1 parent 027f5fd commit 0c78d12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/v2/PolygonZkEVMGlobalExitRootV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ contract PolygonZkEVMGlobalExitRootV2 is
// Rollup manager contract address
address public immutable rollupManager;

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

/**
* @dev Emitted when the global exit root is updated
Expand All @@ -36,7 +37,7 @@ contract PolygonZkEVMGlobalExitRootV2 is
/**
* @dev Emitted when the global exit root manager starts adding leafs to the L1InfoRootMap
*/
event InitL1InfoRootMap(uint32 depositCount, bytes32 currentL1InfoRoot);
event InitL1InfoRootMap(uint32 leafIndex, bytes32 currentL1InfoRoot);

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

0 comments on commit 0c78d12

Please sign in to comment.