-
Notifications
You must be signed in to change notification settings - Fork 10
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
Subgraph deploy on Flow EVM Mainnet #610
Comments
Hey @deathwing00000 , I'll have a look at this, as soon as I can 🙏 |
Hi @m-Peter, any update on this? |
Hey @Extended-UI, sorry, I haven't been able to check on it. I'll dedicate some time for it tomorrow. |
Thank you! We're scratching our heads here with no solution |
Also we had another issue, but maybe it is connected to this one.
The events didn't have negative values, but for some reason when parsing the graph, the values for those events got corrupted (that's my guess right now). |
@deathwing00000 Let me check that as well. This may be a standalone issue, not related to this one. |
@deathwing00000 @Extended-UI Regarding the issue in the description, I can see from the logs (https://evm.flowscan.io/tx/0x5ce2cf0a5122f85e3652174b64295495a06fb4c0d59d95acd6fd5b5446ae00ec?tab=logs) a certain call with a zero address: |
@m-Peter Actually, we don't parse this particular event. In this transaction we are looking for Regarding |
@deathwing00000 I think the problem comes from the
But these cannot be accessed with contract calls. To retrieve the value of constants, the only way is to go through curl -s -XPOST 'https://mainnet.evm.nodes.onflow.org' --header 'Content-Type: application/json' --data-raw '{"jsonrpc":"2.0","method":"eth_getStorageAt","params": ["0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e", "0x2", "latest"],"id":1}' Which returns: {
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000012"
} This is the equivalent of |
After some discussion with @deathwing00000, I was informed that the getter functions are auto-generated in Solidity. curl -s -XPOST 'https://mainnet.evm.nodes.onflow.org' --header 'Content-Type: application/json' --data-raw '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"input":"0x06fdde03","from":"0x3ca7971b5be71bcd2db6cedf667f0ae5e5022fed","gas":"0x7be07","gasPrice":"0x0","to":"0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e","value":"0x0"},"0x2BD8EF"]}' | jq And the response is: {
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000c5772617070656420466c6f770000000000000000000000000000000000000000"
} With some usage of let hexName = '0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000c5772617070656420466c6f770000000000000000000000000000000000000000'
let name = await web3.eth.abi.decodeParameter('string', hexName)
assert.equal(name, 'Wrapped Flow') and make sure that we get the expected value. There doesn't seem to be anything unusual here, the data returned from the EVM Gateway are valid. The error in the description occurs when the curl -s -XPOST 'https://mainnet.evm.nodes.onflow.org' --header 'Content-Type: application/json' --data-raw '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"input":"0x06fdde03","from":"0x3ca7971b5be71bcd2db6cedf667f0ae5e5022fed","gas":"0x7be07","gasPrice":"0x0","to":"0x0000000000000000000000000000000000000000","value":"0x0"},"0x2BD8EF"]}' | jq In the above call, we see that Which returns: {
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "invalid: failed transaction: transaction recipient is the zero address"
}
} |
@m-Peter |
@deathwing00000 just checking in here - do you still need help or have you resolved the problem on the client side ? |
Problem
After deployment of the Graph node and deployment of the subgraph in the process block scanning this error occurs:
Address of ERC20 that probably broke this:
0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e
3: 0x6604 - <unknown>!src/meta-morpho-factory/handleCreateMetaMorpho: Ethereum node returned an error when calling function "name" of contract "ERC20": RPC error: Error { code: ServerError(-32000), message: "invalid: failed transaction: transaction recipient is the zero address", data: None }, block_hash: 0xc7dadbdcead6c3cb9a66ea7d110eaa4316888df691c7a72ac31ed645d1d2e9f9, block_number: 2873583, sgd: 2, subgraph_id: QmY86Z3VALruUatqA86uWTNa9rwjAXCov8pHjdpDCFqecM, component: SubgraphInstanceManager
Blockhash:
0xc7dadbdcead6c3cb9a66ea7d110eaa4316888df691c7a72ac31ed645d1d2e9f9
Tx hash:
0x5ce2cf0a5122f85e3652174b64295495a06fb4c0d59d95acd6fd5b5446ae00ec
Context
This issue related to previos one
Now we are trying to setup subgraph in mainnet and meeting new issue, but we feel like it can probably have same roots.
The text was updated successfully, but these errors were encountered: