Skip to content

FallbackProvider drops prefetched transactions #5058

@hastom

Description

@hastom

Ethers Version

6.15.0

Search Terms

FallbackProvider, prefetched, prefetchedTransactions

Describe the Problem

When prefetching transactions with fallback provider, using const block = getBlock(blockNumber, true) resulting block does not contain prefetchedTransactions and fails with error when accessed block.prefetchedTransactions. This happens because FallbackProvider receives wrapped block from underlying providers and wraps it again

Code Snippet

https://codesandbox.io/p/devbox/jrhljg?file=%2Findex.js

Contract ABI

Errors

Environment

No response

Environment (Other)

No response

Metadata

Metadata

Assignees

Labels

investigateUnder investigation and may be a bug.v6Issues regarding v6

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions