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

useContractEvents: {code: -32602, message: 'invalid params', data: 'from block is greater than latest block'} #2964

Closed
RamanSB opened this issue May 8, 2024 · 8 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@RamanSB
Copy link

RamanSB commented May 8, 2024

useContractEvents and passing in the contract param works fine, however when changing network to another Network in my case (moving from Sepolia to Base) - I refetch a new contract and pass that in to useContractEvents, this now causes an issue regarding the blockNumber passed to the from param within:

fromBlock: currentBlockNumber - BigInt(blockRange),

For more detail please view this issue.

@jnsdls
Copy link
Member

jnsdls commented May 8, 2024

@gregfromstl any chance #2958 solved this?

@RamanSB
Copy link
Author

RamanSB commented May 8, 2024

Unfortunately not. I still see the error message.

https://token-bank.vercel.app/ (Deposit on Sepolia, then move to Base, inspect the console, you will begin to see the error below) - I've also raised this issue with a @Yash094 , CSE from ThirdWeb on Discord who is actively looking in to this I believe?

image

@gregfromstl
Copy link
Member

Hey @RamanSB, thanks for opening an issue. This is a known bug with our RPCs and we're actively working on a fix. I'll let you know as soon as it's resolved

@gregfromstl gregfromstl added bug Something isn't working duplicate This issue or pull request already exists labels May 9, 2024
@RamanSB
Copy link
Author

RamanSB commented May 10, 2024

Any update on this @gregfromstl ?

@RamanSB
Copy link
Author

RamanSB commented May 13, 2024

Pinging this thread for an update

@gregfromstl
Copy link
Member

Hey @RamanSB thanks for the ping, there's an issue on our RPCs that the team is still working through. I'll followup with them now

@joaquim-verges
Copy link
Contributor

@RamanSB we did an update to our RPC infra that should have resolved this - can you confirm?

@RamanSB
Copy link
Author

RamanSB commented May 16, 2024

I can confirm the issue no longer exists. Thank you

@RamanSB RamanSB closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants