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

Can't use SDK on Mumbai without the Graph for reading operations #289

Open
H34D opened this issue Jun 21, 2022 · 0 comments
Open

Can't use SDK on Mumbai without the Graph for reading operations #289

H34D opened this issue Jun 21, 2022 · 0 comments

Comments

@H34D
Copy link
Contributor

H34D commented Jun 21, 2022

Describe the bug

I am connected to the mumbai (80001) network and want to query details about an agreement but i never see any data coming back. When i looked at the code i found out the request will be changed as following:

if (chainId === 80001 || chainId === 42) {
const latestBlock = await this.web3.eth.getBlockNumber()
options.fromBlock = latestBlock - 99
}

I am connected to an RPC endpoint (alchemy) that is able to take the load of querying from block 0. So this would not apply to my connection.

To Reproduce

Steps to reproduce the behavior:

  1. Connect to mumbai network without a graph node connected
  2. Do getAgreement or something that involves reading logs
  3. No results will be returned but also no error

Expected behavior

I get back data as requested

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

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

No branches or pull requests

1 participant