From b3ad7209695786a82bbc4e3929d4d76cddb9030d Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 13 Dec 2024 10:09:05 +0100 Subject: [PATCH] Replace `transfer` with `call` method --- contracts/sfc/SFC.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/sfc/SFC.sol b/contracts/sfc/SFC.sol index 5b97ec3..9f42df6 100644 --- a/contracts/sfc/SFC.sol +++ b/contracts/sfc/SFC.sol @@ -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); } }