Skip to content

Commit

Permalink
Replace transfer with call method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Dec 13, 2024
1 parent e86e5db commit b3ad720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version {
/// The tokens are sent to the zero address.
function _burnFTM(uint256 amount) internal {
if (amount != 0) {
payable(address(0)).transfer(amount);
payable(address(0)).call{value: amount}("");
emit BurntFTM(amount);
}
}
Expand Down

0 comments on commit b3ad720

Please sign in to comment.