Commit 5d75264f by Jerome de Tychey Committed by GitHub

Fix for bigger payloads

as suggested by izqui in case a function calls transfer under the hood
parent d9b9ed22
...@@ -17,7 +17,7 @@ contract BasicToken is ERC20Basic, SafeMath { ...@@ -17,7 +17,7 @@ contract BasicToken is ERC20Basic, SafeMath {
* Fix for the ERC20 short address attack * Fix for the ERC20 short address attack
*/ */
modifier onlyPayloadSize(uint size) { modifier onlyPayloadSize(uint size) {
assert(msg.data.length == size + 4); assert(msg.data.length >= size + 4);
_; _;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment