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

Return wrong blockNumber #4557

Open
thakuranujsingh opened this issue Jan 22, 2024 · 0 comments
Open

Return wrong blockNumber #4557

thakuranujsingh opened this issue Jan 22, 2024 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@thakuranujsingh
Copy link

Ethers Version

6.10.0

Search Terms

No response

Describe the Problem

const provider = new etherjs.FallBackProvider([node1, node2, node3, node4])
const jsonProvider = new etherjs.JsonRpcProvider(node1)

const latestBlockNumberFromJsonRpcProvider = await jsonProvider.getBlockNumber()
console.log(latestBlockNumberFromJsonRpcProvider) // eg return 111

const latestBlockNumberFromfallBackProvider = await provider.getBlockNumber()
console.log(latestBlockNumberFromfallBackProvider) // eg return 112

expected behaviour fallBackProvider should return 111 but it return 112

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

No response

Environment (Other)

No response

@thakuranujsingh thakuranujsingh added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants