From 5d75264f0f5a552ec994266cd8691fadfa422252 Mon Sep 17 00:00:00 2001 From: Jerome de Tychey Date: Tue, 11 Apr 2017 17:25:03 +0200 Subject: [PATCH] Fix for bigger payloads as suggested by izqui in case a function calls transfer under the hood --- contracts/token/BasicToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/BasicToken.sol b/contracts/token/BasicToken.sol index 9003118a0bb..5e6f3278afe 100644 --- a/contracts/token/BasicToken.sol +++ b/contracts/token/BasicToken.sol @@ -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); _; }