Skip to content

Commit

Permalink
Fix audittens L02 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Dec 2, 2024
1 parent 7663cfc commit 4c27dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l1-contracts/contracts/bridge/L1Nullifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract L1Nullifier is IL1Nullifier, ReentrancyGuard, Ownable2StepUpgradeable,
/// We use this both for Eth and erc20 token deposits, so we need to update the diamond and bridge simultaneously.
uint256 internal eraLegacyBridgeLastDepositBatch;

/// @dev The tx number in the _eraLegacyBridgeLastDepositBatch of the last deposit tx initiated by the legacy bridge.
/// @dev The tx number in the _eraLegacyBridgeLastDepositBatch that comes *right after* the last deposit tx initiated by the legacy bridge.
/// This variable (together with eraLegacyBridgeLastDepositBatch) is used to differentiate between pre-upgrade and post-upgrade deposits. Deposits processed in older txs
/// than this value are considered to have been processed prior to the upgrade and handled separately.
/// We use this both for Eth and erc20 token deposits, so we need to update the diamond and bridge simultaneously.
Expand Down Expand Up @@ -500,7 +500,7 @@ contract L1Nullifier is IL1Nullifier, ReentrancyGuard, Ownable2StepUpgradeable,
return
(_chainId == ERA_CHAIN_ID) &&
(_l2BatchNumber < eraLegacyBridgeLastDepositBatch ||
(_l2TxNumberInBatch <= eraLegacyBridgeLastDepositTxNumber &&
(_l2TxNumberInBatch < eraLegacyBridgeLastDepositTxNumber &&
_l2BatchNumber == eraLegacyBridgeLastDepositBatch));
}

Expand Down

0 comments on commit 4c27dc6

Please sign in to comment.