This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,11 @@ def any():
54
54
~ invalid ()
55
55
if dataPos > 1024 or positionIndex > 32 :
56
56
~ invalid ()
57
+ positions [positionIndex ] = dataPos
57
58
output = string (2048 )
58
59
i = 0
59
- while i < positionIndex :
60
- output [i ] = positions [i ] + positionIndex * 32
60
+ while i <= positionIndex :
61
+ output [i ] = positions [i ] + positionIndex * 32 + 32
61
62
i += 1
62
- mcopy (output + positionIndex * 32 , data , dataPos )
63
- ~ return (output , positionIndex * 32 + dataPos )
63
+ mcopy (output + positionIndex * 32 + 32 , data , dataPos )
64
+ ~ return (output , positionIndex * 32 + dataPos + 32 )
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ def to_dict(self):
337
337
acct_trie = SecureTrie (Trie (self .db ))
338
338
acct_trie .root_hash = acct .storage
339
339
for key , v in acct_trie .to_dict ().items ():
340
- storage_dump ['0x' + encode_hex (key .lstrip ('\x00 ' ) or '\x00 ' )] = '0x' + encode_hex (rlp .decode (v ))
340
+ storage_dump ['0x' + encode_hex (key .lstrip (b '\x00 ' ) or b '\x00 ' )] = '0x' + encode_hex (rlp .decode (v ))
341
341
acct_dump = {"storage" : storage_dump }
342
342
for c in ACCOUNT_OUTPUTTABLE_PARAMS :
343
343
acct_dump [c ] = snapshot_form (getattr (acct , c ))
You can’t perform that action at this time.
0 commit comments