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_traceTransaction returns an empty trace #3430

Open
vbaranov opened this issue Jun 5, 2024 · 0 comments
Open

debug_traceTransaction returns an empty trace #3430

vbaranov opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vbaranov
Copy link

vbaranov commented Jun 5, 2024

Describe the bug
debug_traceTransaction JSON RPC method returns an empty trace

To Reproduce

For instance, multiple transactions at IOTA Shimmer Testnet or IOTA EVM return a trace like this (the example hash is from Shimmer Testnet)

Request:

curl -sL \
  -H "Content-Type:application/json;charset=utf-8" \
  -d "{
      \"jsonrpc\": \"2.0\",
      \"id\": 1,
      \"method\": \"debug_traceTransaction\",
      \"params\": [
          \"0x1d8a4aa40463d317c2b104a3b6b299b0fd4f400d922a976616947f3e18be3196\",
          { \"tracer\": \"callTracer\"}
      ]
  }" \
https://...

Response:
{"jsonrpc":"2.0","id":1,"result":{"type":"","from":"","gas":"","gasUsed":"", "input":""}}

Expected behavior

If a transaction has no nested traces, the response of debug_traceTransaction should contain the data from the original transaction (other EVM JSON RPC clients do that). Thus, instead {"jsonrpc":"2.0","id":1,"result":{"type":"","from":"","gas":"","gasUsed":"", "input":""}}, we expect the data (example with arbitrary data, they're unrelated to tested transaction hash):

{"jsonrpc":"2.0","id":1,"result":{"type":""DELEGATECALL,"from":"0x8250f4af4b972684f7b336503e2d6dfedeb1487a","to": "0x66e9cba5529824a03b5bc9931d9c63637101d0f7","gas":"0xaf7b","gasUsed":"0x2a7d","input":"0xc0fd8bde..."}}

Network and versioning

  • Type of L1 network: Shimmer Testnet/IOTA Mainnet
  • Type of Wasp chain: ShimmerEVM Testnet/ShimmerEVM
  • Interaction method: JSON/RPC HTTP
  • Interaction software: API
  • Version of Wasp: I don't know

This issue interferes to properly indexing internal transactions on the mentioned chains in the Blockscout explorer.

@vbaranov vbaranov added the bug Something isn't working label Jun 5, 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
Projects
None yet
Development

No branches or pull requests

2 participants