Skip to content

Commit

Permalink
Update BridgeVault.sol (#17231)
Browse files Browse the repository at this point in the history
fix from the Hacken bug bounty.
  • Loading branch information
Bridgerz authored and patrickkuo committed May 9, 2024
1 parent d9c88f7 commit 13c0165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridge/evm/contracts/BridgeVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ contract BridgeVault is Ownable, IBridgeVault {
wETH.withdraw(amount);

// Transfer the unwrapped ETH to the target address
recipientAddress.transfer(amount);
(bool success,) = recipientAddress.call{value: amount}("");
require(success, "ETH transfer failed");
}

/// @notice Wraps as eth sent to this contract.
Expand Down

0 comments on commit 13c0165

Please sign in to comment.