Skip to content

Commit

Permalink
fix(protocol): Deposit ether reentrancy (TKO-14) (#15569)
Browse files Browse the repository at this point in the history
Co-authored-by: Keszey Dániel <keszeyd@MacBook-Pro.local>
  • Loading branch information
adaki2004 and Keszey Dániel committed Jan 25, 2024
1 parent 9004b04 commit 7327ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ contract TaikoL1 is
/// @notice Deposits Ether to Layer 2.
/// @param recipient Address of the recipient for the deposited Ether on
/// Layer 2.
function depositEtherToL2(address recipient) external payable whenNotPaused {
function depositEtherToL2(address recipient) external payable nonReentrant whenNotPaused {
LibDepositing.depositEtherToL2(state, getConfig(), AddressResolver(this), recipient);
}

Expand Down

0 comments on commit 7327ff0

Please sign in to comment.