Fix for bigger payloads

as suggested by izqui in case a function calls transfer under the hood
This commit is contained in:
Jerome de Tychey
2017-04-11 17:25:03 +02:00
committed by GitHub
parent d9b9ed227b
commit 5d75264f0f

View File

@ -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);
_;
}