Reduced limit to 4096 bytes

This commit is contained in:
Vitalik Buterin 2017-05-19 00:35:45 -04:00
parent 318bf043ed
commit ac89506000
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ from ethereum import utils
def mk_forwarder(address): def mk_forwarder(address):
code = b'\x36\x60\x00\x60\x00\x37' # CALLDATACOPY 0 0 (CALLDATASIZE) code = b'\x36\x60\x00\x60\x00\x37' # CALLDATACOPY 0 0 (CALLDATASIZE)
code += b'\x61\x20\x00\x60\x00\x36\x60\x00' # 8192 0 CALLDATASIZE 0 code += b'\x61\x10\x00\x60\x00\x36\x60\x00' # 4096 0 CALLDATASIZE 0
code += b'\x73' + utils.normalize_address(address) + b'\x5a' # address gas code += b'\x73' + utils.normalize_address(address) + b'\x5a' # address gas
code += b'\xf4' # delegatecall code += b'\xf4' # delegatecall
code += b'\x61\x20\x00\x60\x00\xf3' # 8192 0 RETURN code += b'\x61\x10\x00\x60\x00\xf3' # 4096 0 RETURN
return code return code
def mk_wrapper(code): def mk_wrapper(code):