Skip to content

Commit

Permalink
Added transfer condition that addresses are different
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 6, 2021
1 parent 978431c commit 46e5270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/Ticket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ contract Ticket is ControlledToken, ITicket {

// @inheritdoc ERC20
function _beforeTokenTransfer(address _from, address _to, uint256 _amount) internal override {
if (_from == _to) {
return;
}

address _fromDelegate;
if (_from != address(0)) {
_fromDelegate = delegates[_from];
Expand Down

0 comments on commit 46e5270

Please sign in to comment.