Skip to content

Commit

Permalink
payable
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 27, 2024
1 parent c12289a commit 2d0d15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/nft/contracts/evm/UniversalNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ abstract contract UniversalNFT is
_safeMint(receiver, tokenId);
_setTokenURI(tokenId, uri);
if (gasAmount > 0) {
(bool success, ) = sender.call{value: gasAmount}("");
(bool success, ) = payable(sender).call{value: gasAmount}("");
if (!success) revert GasTokenTransferFailed();
}
emit TokenTransferReceived(receiver, tokenId, uri);
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/contracts/evm/UniversalToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ abstract contract UniversalToken is ERC20, Ownable2Step, Events {
) = abi.decode(message, (address, uint256, uint256, address));
_mint(receiver, amount);
if (gasAmount > 0) {
(bool success, ) = sender.call{value: amount}("");
(bool success, ) = payable(sender).call{value: amount}("");
if (!success) revert GasTokenTransferFailed();
}
emit TokenTransferReceived(receiver, amount);
Expand Down

0 comments on commit 2d0d15d

Please sign in to comment.