From ce2bab4a6733c9878d45dbd6793339897fce90ab Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 7 Oct 2024 20:45:34 +0300 Subject: [PATCH] rename --- examples/hello/contracts/Hello.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/hello/contracts/Hello.sol b/examples/hello/contracts/Hello.sol index afebf156..249c800d 100644 --- a/examples/hello/contracts/Hello.sol +++ b/examples/hello/contracts/Hello.sol @@ -53,9 +53,9 @@ contract Hello is UniversalContract { ) external { (address gasZRC20, uint256 gasFee) = IZRC20(zrc20) .withdrawGasFeeWithGasLimit(gasLimit); - uint256 total = zrc20 == gasZRC20 ? amount + gasFee : amount; - IZRC20(zrc20).transferFrom(msg.sender, address(this), total); - IZRC20(zrc20).approve(address(gateway), total); + uint256 targetAmount = zrc20 == gasZRC20 ? amount + gasFee : amount; + IZRC20(zrc20).transferFrom(msg.sender, address(this), targetAmount); + IZRC20(zrc20).approve(address(gateway), targetAmount); if (zrc20 != gasZRC20) { IZRC20(gasZRC20).transferFrom(msg.sender, address(this), gasFee); IZRC20(gasZRC20).approve(address(gateway), gasFee);