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

Query to Sigs: returns record with the only last msgHash in tx logs #14

Open
davaymne opened this issue Oct 4, 2023 · 2 comments
Open

Comments

@davaymne
Copy link

davaymne commented Oct 4, 2023

WHAT: Query to Sigs: returns record with the only last msgHash in tx logs.

It could be a case where there are multiple SignMsg logs in the same tx https://etherscan.io/tx/0x1e206ce100e2c9c85dbf6365798e2e6ccbf4e30d9499a00699e86531c6426778#eventlog

Query:

{
  sigs (where: {id: "0x1e206ce100e2c9c85dbf6365798e2e6ccbf4e30d9499a00699e86531c6426778"}){
    id
    account
    timestamp
    msgHash
  }
}

Output:

{
  "data": {
    "sigs": [
      {
        "id": "0x1e206ce100e2c9c85dbf6365798e2e6ccbf4e30d9499a00699e86531c6426778",
        "account": "0xcb7ec73fd2bca2596794804a6ef5475d0dc4f427",
        "timestamp": "1655486898",
        "msgHash": "0x051294081b7decc21d5bfb0eb4b088564850e9129126ec29477dfe0551ffde91"
      }
    ]
  }
}

Returns only last log rather the list of SignMsg logs.

@ChaituVR
Copy link
Member

ChaituVR commented Oct 5, 2023

We are not using sigs anymore because of this. you have some use case?

@davaymne
Copy link
Author

davaymne commented Oct 5, 2023

So far, we use your subgraph as an excellent example for practicing subgraph migration from The Graph protocol to Subsquid protocol (which is currently running Testnet) and bumped into this data discrepancy.

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

2 participants