Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit c08c127

Browse files
committed
Fix config lookup
1 parent 04b10d2 commit c08c127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/processblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def create_contract(ext, msg):
306306
#print('CREATING WITH GAS', msg.gas)
307307
sender = decode_hex(msg.sender) if len(msg.sender) == 40 else msg.sender
308308
code = msg.data.extract_all()
309-
if ext._block.number >= ext._block.METROPOLIS_FORK_BLKNUM:
309+
if ext._block.number >= ext._block.config['METROPOLIS_FORK_BLKNUM']:
310310
msg.to = mk_metropolis_contract_address(msg.sender, code)
311311
if ext.get_code(msg.to):
312312
if ext.get_nonce(msg.to) >= 2 ** 40:

0 commit comments

Comments
 (0)