-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP: convert protos methods to methods in firehose-protos #26
WIP: convert protos methods to methods in firehose-protos #26
Conversation
BACK-113 Convert methods converting `firehose-protos` types to methods on those types
This moves towards ensuring testing of public methods by reducing unnecessary complexity, removing the need to implement conversions as part of tested code in |
7724abb
to
52e6719
Compare
52e6719
to
3062bfc
Compare
3062bfc
to
f0192b6
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.
I think this is a massive improvement over what we had before! Nice work! In the future, please try to make your commits atomic. You have one massive commit that does multiple things. I commented a few examples, not all.
#[error("Invalid BigInt")] | ||
InvalidBigInt(String), | ||
#[error("EIP-4844 not supported")] | ||
EIP4844NotSupported, | ||
#[error("Invalid Signature: {0}")] |
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 commit doesn't look atomic. You removed InvalidSignature
entirely. I don't think I see it having been moved.
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.
For example
@@ -8,8 +8,11 @@ doctest = false | |||
path = "src/lib.rs" | |||
|
|||
[dependencies] | |||
alloy-consensus.workspace = true |
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 should be part of a build commit
@@ -157,6 +162,305 @@ impl TryFrom<Response> for Block { | |||
} | |||
} | |||
|
|||
impl TryFrom<&Log> for alloy_primitives::Log { |
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 is more than a simple move. It also heavily refactors. This is probably at least two commits: refactor: move stuff
and refactor: improve code
Everything here has been merged in other PRs. |
No description provided.