Browse Source

Fix for bigger payloads

as suggested by izqui in case a function calls transfer under the hood
Jerome de Tychey 8 năm trước cách đây
mục cha
commit
5d75264f0f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      contracts/token/BasicToken.sol

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