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

Commit 0e6a8fc

Browse files
committed
force addr to bytes
1 parent d8c7114 commit 0e6a8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ def commit_state(self):
10251025
setattr(acct, field, v)
10261026

10271027
t = SecureTrie(Trie(self.db, acct.storage))
1028-
for k, v in self.caches.get(b'storage:' + addr, {}).items():
1028+
for k, v in self.caches.get(b'storage:' + utils.to_string(addr), {}).items():
10291029
enckey = utils.zpad(utils.coerce_to_bytes(k), 32)
10301030
val = rlp.encode(v)
10311031
changes.append(['storage', addr, k, v])

0 commit comments

Comments
 (0)