Skip to content

Commit

Permalink
fix: wrong amount when refunding
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Dec 25, 2024
1 parent 9a70620 commit 8da771b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/token/contracts/evm/UniversalTokenCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ abstract contract UniversalTokenCore is
_mint(receiver, amount);
if (gasAmount > 0) {
if (sender == address(0)) revert InvalidAddress();
(bool success, ) = payable(sender).call{value: amount}("");
(bool success, ) = payable(sender).call{value: gasAmount}("");
if (!success) revert GasTokenTransferFailed();
}
emit TokenTransferReceived(receiver, amount);
Expand Down

0 comments on commit 8da771b

Please sign in to comment.