From 04000059e5e7940f209639c900557b437a766913 Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Fri, 2 May 2025 12:48:03 +0100 Subject: [PATCH] feat: Change revert condition in _wrapETH --- don't change below this line --- ENG-4476 Took 1 minute --- foundry/src/TychoRouter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index 379f0e7..4d9d7b7 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -757,7 +757,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard { * @param amount of native ETH to wrap. */ function _wrapETH(uint256 amount) internal { - if (msg.value > 0 && msg.value != amount) { + if (msg.value != amount) { revert TychoRouter__MessageValueMismatch(msg.value, amount); } _weth.deposit{value: amount}();