From d505da8953058169a2b840716b0ab35cb1eb62aa Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Tue, 18 Jun 2024 15:33:55 +0300 Subject: [PATCH] variables --- omnichain/swap/contracts/Swap.sol | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/omnichain/swap/contracts/Swap.sol b/omnichain/swap/contracts/Swap.sol index 821952c9..fa36a853 100644 --- a/omnichain/swap/contracts/Swap.sol +++ b/omnichain/swap/contracts/Swap.sol @@ -42,10 +42,13 @@ contract Swap is zContract, OnlySystem { params.to = recipient; } - (address gasZRC20, uint256 gasFee) = IZRC20(params.target) - .withdrawGasFee(); + uint256 inputForGas; + address gasZRC20; + uint256 gasFee; - uint256 inputForGas = SwapHelperLib.swapTokensForExactTokens( + (gasZRC20, gasFee) = IZRC20(params.target).withdrawGasFee(); + + inputForGas = SwapHelperLib.swapTokensForExactTokens( systemContract, zrc20, gasFee,