@@ -332,7 +332,7 @@ def __eq__(self, other):
332
332
return isinstance (other , BlockHeader ) and self .hash == other .hash
333
333
334
334
def __hash__ (self ):
335
- return utils . big_endian_to_int (self .hash )
335
+ return big_endian_to_int (self .hash )
336
336
337
337
def __ne__ (self , other ):
338
338
return not self .__eq__ (other )
@@ -1099,7 +1099,7 @@ def account_to_dict(self, address, with_storage_root=False,
1099
1099
for kk in list (subcache .keys ())]
1100
1100
for k in list (d .keys ()) + subkeys :
1101
1101
v = d .get (k , None )
1102
- v2 = subcache .get (utils . big_endian_to_int (k ), None )
1102
+ v2 = subcache .get (big_endian_to_int (k ), None )
1103
1103
hexkey = b'0x' + encode_hex (utils .zunpad (k ))
1104
1104
if v2 is not None :
1105
1105
if v2 != 0 :
@@ -1291,7 +1291,7 @@ def __eq__(self, other):
1291
1291
return isinstance (other , (Block , CachedBlock )) and self .hash == other .hash
1292
1292
1293
1293
def __hash__ (self ):
1294
- return utils . big_endian_to_int (self .hash )
1294
+ return big_endian_to_int (self .hash )
1295
1295
1296
1296
def __ne__ (self , other ):
1297
1297
return not self .__eq__ (other )
@@ -1349,7 +1349,7 @@ def commit_state(self):
1349
1349
pass
1350
1350
1351
1351
def __hash__ (self ):
1352
- return utils . big_endian_to_int (self .hash )
1352
+ return big_endian_to_int (self .hash )
1353
1353
1354
1354
@property
1355
1355
def hash (self ):
@@ -1437,8 +1437,8 @@ def genesis(env, **kwargs):
1437
1437
block .set_nonce (addr , utils .parse_int_or_hex (data ['nonce' ]))
1438
1438
if 'storage' in data :
1439
1439
for k , v in data ['storage' ].items ():
1440
- block .set_storage_data (addr , utils . big_endian_to_int (decode_hex (k [2 :])),
1441
- utils . big_endian_to_int (decode_hex (v [2 :])))
1440
+ block .set_storage_data (addr , big_endian_to_int (decode_hex (k [2 :])),
1441
+ big_endian_to_int (decode_hex (v [2 :])))
1442
1442
block .commit_state ()
1443
1443
block .state .db .commit ()
1444
1444
# genesis block has predefined state root (so no additional finalization
0 commit comments