Skip to content

Commit

Permalink
Fix for bigger payloads
Browse files Browse the repository at this point in the history
as suggested by izqui in case a function calls transfer under the hood
  • Loading branch information
jdetychey authored Apr 11, 2017
1 parent d9b9ed2 commit 5d75264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/token/BasicToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract BasicToken is ERC20Basic, SafeMath {
* Fix for the ERC20 short address attack
*/
modifier onlyPayloadSize(uint size) {
assert(msg.data.length == size + 4);
assert(msg.data.length >= size + 4);
_;
}

Expand Down

0 comments on commit 5d75264

Please sign in to comment.