From 0c78d12111c2799db75b9dfdc6f89a54ff3f7b0c Mon Sep 17 00:00:00 2001 From: joanestebanr <129153821+joanestebanr@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:03:42 +0200 Subject: [PATCH] rename depositCount to leafIndex --- contracts/v2/PolygonZkEVMGlobalExitRootV2.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol b/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol index dd298d5f4..c3c31b853 100644 --- a/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol +++ b/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol @@ -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 @@ -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