-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
chore: dedup abi values formatting, cleanups #6196
Conversation
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.
nice, tysm, only one smol doc nit
removing the async from the provider functions (don't know why they were there in the first place) might cause some issues with consumers of the crate, but I'm fine with that
} | ||
|
||
impl<'a> DynValueDisplay<'a> { | ||
/// Creates a new [`Display`] wrapper for the given value. |
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 we add smol note about raw?
impl<'a> From<Cow<'a, str>> for ProviderBuilder { | ||
fn from(url: Cow<'a, str>) -> Self { | ||
url.as_ref().into() | ||
Ok(provider) | ||
} | ||
} |
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 guess these were never used and since we're transitioning to alloy, makes sense to get rid of them
@@ -254,7 +233,7 @@ impl<'a> From<Cow<'a, str>> for ProviderBuilder { | |||
pub async fn estimate_eip1559_fees<M: Middleware>( | |||
provider: &M, | |||
chain: Option<u64>, | |||
) -> eyre::Result<(U256, U256)> | |||
) -> Result<(U256, U256)> |
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.
personally, I prefer the eyre::
prefix, but because there are no other result types, and this is more or less the default result across the codebase, makes sense
plus cleanups