From c6758886940e94a73b2076c395d01f553add9d61 Mon Sep 17 00:00:00 2001 From: 1948810 Date: Fri, 5 Jan 2024 15:52:24 +0100 Subject: [PATCH] add burn --- smart_contract/Geth.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_contract/Geth.sol b/smart_contract/Geth.sol index 52310cd..3a6d088 100644 --- a/smart_contract/Geth.sol +++ b/smart_contract/Geth.sol @@ -43,7 +43,7 @@ contract Geth is ERC20, Ownable { require(balanceOf(msg.sender) >= tokenAmount,"you don't have this amount of token"); uint256 WeiAmount = calculateWeiAmount(tokenAmount); - + _burn(msg.sender, tokenAmount); // Trasferisci i token all'acquirente payable(msg.sender).transfer(WeiAmount); }