-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(core/types): body RLP hooks registration #130
Conversation
f037b1a
to
9fe07d4
Compare
30145a2
to
5cc4a70
Compare
de572a1
to
99c0b34
Compare
3ff6b2c
to
0f2b8ee
Compare
Co-authored-by: Arran Schlosberg <[email protected]>
Co-authored-by: Arran Schlosberg <[email protected]>
d3fc726
to
2c46b58
Compare
…types_test` (#131) ## Why this should be merged Simplify testing in #130. ## How this works Backwards-compatibility tests were originally created in `package types_test` because the first one uses `ethtest` and would have caused a circular dependency. None of the later tests have this issue so they were moved into `package types`. The `cmpeth` test utility isn't currently needed anywhere else so its functionality is collapsed inside this new file. ## How this was tested N/A as simply moving existing tests to different files.
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.
LFG 🚀
require.NoErrorf(t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s", | ||
(*withoutMethods)(body), got, pretty.Sprint(got)) |
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.
require.NoErrorf(t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s", | |
(*withoutMethods)(body), got, pretty.Sprint(got)) | |
require.NoErrorf( | |
t, err, "rlp.DecodeBytes(rlp.EncodeToBytes(%T), %T) resulted in %s", | |
(*withoutMethods)(body), got, pretty.Sprint(got), | |
) |
This isn't 🐍 Python 😛
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.
Didn't see the auto merge. I'll do it in my PR.
Why this should be merged
Allow to register body extras in consumers of libevm.
How this works
How this was tested
Existing tests modified.