Skip to content

Commit

Permalink
Override _update function in gwt.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed Dec 27, 2023
1 parent 26a453b commit 952b216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/gwt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ contract GWTToken is ERC20, Ownable {
return amount / 210;
}

function _transfer(address sender, address to, uint256 amount) internal override {
function _update(address sender, address to, uint256 amount) internal override {
require(allow_transfer[sender] || allow_transfer[to], "transfer not allowed");
super._transfer(sender, to, amount);
super._update(sender, to, amount);
}
}

0 comments on commit 952b216

Please sign in to comment.