-
Notifications
You must be signed in to change notification settings - Fork 1.1k
merge builder and structs payload types #15283
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
base: develop
Are you sure you want to change the base?
Conversation
require.NoError(t, err) | ||
pb, err := pp.PayloadProto() | ||
if err == nil { | ||
require.NoError(t, err) | ||
require.Equal(t, false, pb == nil) |
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.
Can you explain these changes?
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.
because payloadProto can't get called anymore if it's already nil in parsepayload, it just errors earlier now because of how it works
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
What type of PR is this?
Other
What does this PR do? Why is it needed?
we have the execution payload types defined several times in our code base, and although maybe we aren't able to merge them all, there is a case to be said for merging the HTTP REST and builder API definitions as they are essentially the same. This PR merges the use case of these types with a preference for the types defined for the rest APIs.
Which issues(s) does this PR fix?
Fixes #
Other notes for review
Acknowledgements