-
Notifications
You must be signed in to change notification settings - Fork 245
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(layers): GasEstimationLayer #326
Conversation
Decided to make this a more generic tx builder layer. Ref: #326 (comment) Renaming it to |
This reverts commit 991968e.
Undo above. |
Didn't see this getting merged #352 Fixing |
} | ||
Err(err) => { | ||
if err.is_transport_error() | ||
&& err.to_string() == *"EIP-1559 not activated".to_string() |
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 love this to a helper method on the error re 1559 but we can do as followup
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.
actually this is a bit of a hole in the API. 1559 not activated should not be a transport error. "endpoint doesn't exist" falls in a hole between transport error and rpc error 🤔
Motivation
Ref: #323
Solution
Implement a
layer
that populates thegas_price
,gas
,max_fee_per_gas
andmax_priority_fee_per_gas
.PR Checklist