Skip to content

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Apr 21, 2025

No description provided.

@lutter lutter requested a review from incrypto32 April 21, 2025 17:25
@lutter lutter self-assigned this Apr 21, 2025
Comment on lines 1347 to 1350
Box::pin(web3.eth().block_with_txs(BlockId::Hash(block_hash)))
.compat()
.from_err()
.compat()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Box::pin(web3.eth().block_with_txs(BlockId::Hash(block_hash)))
.compat()
.from_err()
.compat()
let web3 = web3.clone();
async move {
web3.eth()
.block_with_txs(BlockId::Hash(block_hash))
.await
.map_err(Error::from)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice! I am incorporating that into the PR

Copy link
Member

@incrypto32 incrypto32 left a comment

Choose a reason for hiding this comment

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

LGTM! There's still some leftover futures01 usage, but we can tackle that later.

@lutter
Copy link
Collaborator Author

lutter commented Apr 23, 2025

Yeah, we'll have to make a few more passes over the codebase to get rid of all the futures01

@lutter lutter force-pushed the lutter/eth-async branch from fc171fc to 45dda04 Compare April 23, 2025 21:48
@lutter lutter merged commit 45dda04 into master Apr 24, 2025
6 checks passed
@lutter lutter deleted the lutter/eth-async branch April 24, 2025 16:31
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.

3 participants