Skip to content
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

Merged
merged 8 commits into from
Nov 2, 2023

Conversation

DaniPopes
Copy link
Member

plus cleanups

Copy link
Member

@mattsse mattsse left a 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.
Copy link
Member

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)
}
}
Copy link
Member

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)>
Copy link
Member

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

@DaniPopes DaniPopes changed the title chore: dedup abi values formatting chore: dedup abi values formatting, cleanups Nov 2, 2023
@DaniPopes DaniPopes merged commit 3546f16 into foundry-rs:master Nov 2, 2023
17 checks passed
@DaniPopes DaniPopes deleted the abi-cleanups branch November 2, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants