Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion contracts/MiniMeToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ contract MiniMeToken is Controlled {
require(parentSnapShotBlock < block.number);

// Do not allow transfer to 0x0 or the token contract itself
require((_to != 0) && (_to != address(this)));
//Also Check for short address attack http://vessenes.com/the-erc20-short-address-attack-explained/
require((_to != 0) && (_to != address(this)) && (_from != to));

// If the amount being transfered is more than the balance of the
// account the transfer returns false
Expand Down