From 7327ff0dcd4dcdbcb94681332aad8c30a2ec14e1 Mon Sep 17 00:00:00 2001 From: D <51912515+adaki2004@users.noreply.github.com> Date: Thu, 25 Jan 2024 21:28:22 +0530 Subject: [PATCH] fix(protocol): Deposit ether reentrancy (TKO-14) (#15569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Keszey Dániel --- packages/protocol/contracts/L1/TaikoL1.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protocol/contracts/L1/TaikoL1.sol b/packages/protocol/contracts/L1/TaikoL1.sol index 2d080e3dadd..405f908744e 100644 --- a/packages/protocol/contracts/L1/TaikoL1.sol +++ b/packages/protocol/contracts/L1/TaikoL1.sol @@ -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); }