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

debug_traceBlockByHash returning incorrect format when compared to evm node format #539

Closed
rayyan224 opened this issue Sep 10, 2024 · 0 comments · Fixed by #557
Closed
Assignees
Labels
Bug Something isn't working EVM
Milestone

Comments

@rayyan224
Copy link

Problem

There are discrepencies in debug_traceBlockByHash when compared to evm nodes example below:
Eth Format

"result": [
        {
            "txHash": "0xf3c94530894aa7d6c6503ead504520f02701d0bdf9eb184c473693c352785fbb",
            "result": {
                "from": "0x80b8c9f846df16d02deee062fd7a0a73ad6f2b66",
                "gas": "0x776ac",
                "gasUsed": "0x286a3",
                "to": "0x3328f7f4a1d1c57c35df56bbf0c9dcafca309c49",
                "input": "",
                "calls": [],
                "value": "0x0",
                "type": "CALL"
            }
        },
... more internal transactions
]

Flow format

 "result": [
        {
            "from": "0x0000000000000000000000020000000000000000",
            "gas": "0x0",
            "gasUsed": "0xab888",
            "to": "0x00000000000000000000000249250a5c27ecab3b",
            "input": "",
            "value": "0x0",
            "type": "CREATE2"
        }
]

The issues are the following

  1. transaction hash is missing from the flow node response
  2. Flow node is flattening the response. Response from evm node should be an array in that array should be a result[] and transaction hash together.
@m-Peter m-Peter self-assigned this Sep 10, 2024
@m-Peter m-Peter added Bug Something isn't working EVM and removed Feedback labels Sep 10, 2024
@m-Peter m-Peter added this to the Flow-EVM-M2 milestone Sep 10, 2024
@github-project-automation github-project-automation bot moved this to ✅ Done in 🌊 Flow 4D Sep 19, 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 EVM
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants