From 65bd0d07499b79c261efdb00debb19487d6af543 Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Tue, 13 May 2025 12:31:44 +0100 Subject: [PATCH] feat: Explicitly handle the TransferType.NONE case Took 8 minutes --- foundry/src/executors/TokenTransfer.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foundry/src/executors/TokenTransfer.sol b/foundry/src/executors/TokenTransfer.sol index b5f8629..05e296a 100644 --- a/foundry/src/executors/TokenTransfer.sol +++ b/foundry/src/executors/TokenTransfer.sol @@ -45,7 +45,9 @@ contract TokenTransfer { uint256 amount, TransferType transferType ) internal { - if (transferType == TransferType.TRANSFER_TO_PROTOCOL) { + if (transferType == TransferType.NONE) { + return; + } else if (transferType == TransferType.TRANSFER_TO_PROTOCOL) { if (tokenIn == address(0)) { payable(receiver).transfer(amount); } else {