Skip to content

Conversation

@DaughterOfMars
Copy link
Contributor

Description

Uses the eyre crate instead of anyhow.

Closes #217

@DaughterOfMars DaughterOfMars linked an issue Sep 25, 2025 that may be closed by this pull request
.reference_gas_price(None)
.await?
.context("missing ref gas price")?,
.ok_or_eyre("missing ref gas price")?,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like context much more :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could actually be used with an additional trait import

NOTE: However, to help with porting we do provide a ContextCompat trait which implements context for options which you can import to make existing .context calls compile.

https://crates.io/crates/eyre

@Thoralf-M Thoralf-M merged commit 1f7aaf1 into sdk-bindings Sep 29, 2025
14 checks passed
@Thoralf-M Thoralf-M deleted the feat/eyre branch September 29, 2025 06:32
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.

Use eyre instead of anyhow

4 participants