Skip to content

Commit 1408e1f

Browse files
author
Mihai
authored
fix: call block_number property of BlockObject
1 parent e8a18e0 commit 1408e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/gas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
blocks = api.block.blocks_by_number(order='desc', limit=500)
88
fig, ax = plt.subplots()
9-
ax.plot([x.number for x in blocks], [x.gas_used for x in blocks])
9+
ax.plot([x.block_number for x in blocks], [x.gas_used for x in blocks])

0 commit comments

Comments
 (0)