You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
System info: [Include Ethermint commit, operating system name, and other relevant details] #306#333 Steps to reproduce:
My web3.py still get error when send the getBlock command because of nil returned in uncles.
raise type(exc)("Could not format value %r as field %r" % (item, key)) from exc
TypeError: Could not format value None as field 'uncles'
Expected behavior: [What you expected to happen]
Return [] instead of nil
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
I did the modification of eth_api.go line 548 to "uncles": [0]string{},
and it works. Not sure how to submit a PR. Can you help please?
System info: [Include Ethermint commit, operating system name, and other relevant details]
#306 #333
Steps to reproduce:
My web3.py still get error when send the getBlock command because of nil returned in uncles.
TypeError: Could not format value None as field 'uncles'
Expected behavior: [What you expected to happen]
Return [] instead of nil
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
I did the modification of eth_api.go line 548 to
"uncles": [0]string{},
and it works. Not sure how to submit a PR. Can you help please?
My test code below:
https://gist.github.com/ayeteng/ca3df35d550c2a054ebc95f2ff013df0
https://gist.github.com/ayeteng/48bc63d5b7500f94901389b888912a7b
The text was updated successfully, but these errors were encountered: