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

Commit b53e828

Browse files
author
Jan Xie
committed
fix #721: to_string not defined in block.to_dict()
1 parent 2f8efd7 commit b53e828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def to_dict(self):
117117
d[field] = encode_hex(getattr(self, field))
118118
for field in ('number', 'difficulty', 'gas_limit', 'gas_used',
119119
'timestamp'):
120-
d[field] = to_string(getattr(self, field))
120+
d[field] = utils.to_string(getattr(self, field))
121121
d['bloom'] = encode_hex(int256.serialize(self.bloom))
122122
assert len(d) == len(BlockHeader.fields)
123123
return d

0 commit comments

Comments
 (0)