Skip to content

Commit

Permalink
add burn
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroscifoni committed Jan 5, 2024
1 parent 42c6d12 commit c675888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_contract/Geth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c675888

Please sign in to comment.