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

Commit d85c7ba

Browse files
vubvub
authored andcommitted
Added address normalization to mk_contract_address
1 parent 33bdc5f commit d85c7ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/processblock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ethereum import bloom
99
from ethereum import vm as vm
1010
from ethereum.exceptions import *
11-
from ethereum.utils import safe_ord
11+
from ethereum.utils import safe_ord, normalize_address
1212

1313
sys.setrecursionlimit(100000)
1414

@@ -28,7 +28,7 @@
2828

2929

3030
def mk_contract_address(sender, nonce):
31-
return utils.sha3(rlp.encode([sender, nonce]))[12:]
31+
return utils.sha3(rlp.encode([normalize_address(sender), nonce]))[12:]
3232

3333

3434
def verify(block, parent):

0 commit comments

Comments
 (0)