-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix key remapping for eth-tester client #1630
Fix key remapping for eth-tester client #1630
Conversation
eed8f29
to
70f4400
Compare
I'll deal with the failures here and ping you when this is actually ready for review @marcgarreau |
Beside the point, but I'm interested in more context around |
I'm not actually using it. I just ran into these small key/naming discrepancies while working on an app that consumes all the block data and loads it into a relational database. I didn't go as far as actually using the |
@@ -348,7 +348,7 @@ The following methods are available on the ``web3.eth`` namespace. | |||
'nonce': '0x3b05c6d5524209f1', | |||
'number': 2000000, | |||
'parentHash': '0x57ebf07eb9ed1137d41447020a25e51d30a0c272b5896571499c82c33ecb7288', | |||
'receiptRoot': '0x84aea4a7aad5c5899bd5cfc7f309cc379009d30179316a2a7baa4a2ea4a438ac', | |||
'receiptsRoot': '0x84aea4a7aad5c5899bd5cfc7f309cc379009d30179316a2a7baa4a2ea4a438ac', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is technically a breaking change, but it is also a bugfix... I'm inclined to just highlight this well in the release notes. Alternative would be to duplicate this value into both versions of the key (plural and singular) and then remove the singular one in v6...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably lean towards keeping both, but I don't have a strong preference either way. Maybe we could note that in the newsfragment?
It looks like this is ready to be merged after a newsfragment gets added. Want me to pick that up @pipermerriam? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a low-hanging fruit to scoop into v6
. I can rebase, add a newsfragment, and merge it if this looks good to you @kclowes 👀.
Yep, sounds good to me! Thanks @fselmo! |
eb1a5cf
to
b160124
Compare
- Cleanup formatting errors - Update typing - Add test for incorrectly mapped key
b160124
to
33ed07f
Compare
33ed07f
to
3e9e4bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What was wrong?
EthereumTesterProvider
logsBloom
wasn't setup to correctly handle the integer format used by eth-tester.How was it fixed?
logsBloom
andreceiptRoot
logsBloom
to correctly handle integer values that aren't the full bit-lengthCute Animal Picture