Skip to content

Commit

Permalink
Emit Transfer when transferring blacklisted funds (#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk authored Jul 27, 2024
1 parent 881dbfb commit 4494a5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contracts/ethereum/contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,13 @@ contract Token is

// why bother with a newer block? avoid messy block reorgs
require(blacklistFrozenWhen_[_new] < block.number, "same block number");
balances_[_new] = balances_[_old];

uint256 amount = balances_[_old];

balances_[_new] = amount;
balances_[_old] = 0;

emit Transfer(_old, _new, amount);
}

/**
Expand Down

0 comments on commit 4494a5e

Please sign in to comment.