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

Inconsistent response of the native callTracer (difference in release-1.10 and release 1.11) #26742

Closed
alexqrid opened this issue Feb 20, 2023 · 1 comment
Labels

Comments

@alexqrid
Copy link

System information

Geth
Version: 1.11.1-stable

Description

There are some changes affecting native go call tracer.
I'm trying to trace the same transaction with geth 1.10.26 and geth 1.11.1 and receive different fields for DELEGATECALL.
Should value field make sense in DELEGATECALL?

Expected behaviour

No value field in `DELEGATECALL

Actual behaviour

There is an additional value field in DELEGATECALL

Steps to reproduce the behaviour

geth 1.10.26-stable
$ curl 127.0.0.1:8545 -X POST --header 'Content-Type: application/json' --data '{
    "jsonrpc": "2.0",
    "method": "debug_traceTransaction",
    "params": ["0x6a15b6d8a92f017407a06d70704a2a1a5271afb8eb4e61288bd79022d75c160a",{"tracer":"callTracer"}],
    "id": 1
}'|jq

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "type": "CALL",
    "from": "0x46340b20830761efd32832a74d7169b29feb9758",
    "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "value": "0x0",
    "gas": "0x502c8",
    "gasUsed": "0xabf1",
    "input": "0xa9059cbb00000000000000000000000043e2d14a6904b2eb52169a80804533c0d98b3407000000000000000000000000000000000000000000000000000000000eff91b0",
    "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "calls": [
      {
        "type": "DELEGATECALL",
        "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "gas": "0x4d2e2",
        "gasUsed": "0x8f78",
        "input": "0xa9059cbb00000000000000000000000043e2d14a6904b2eb52169a80804533c0d98b3407000000000000000000000000000000000000000000000000000000000eff91b0",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      }
    ]
  }
}
geth 1.11.1-stable
$ curl 127.0.0.1:8545 -X POST --header 'Content-Type: application/json' --data '{
    "jsonrpc": "2.0",
    "method": "debug_traceTransaction",
    "params": ["0x6a15b6d8a92f017407a06d70704a2a1a5271afb8eb4e61288bd79022d75c160a",{"tracer":"callTracer"}],
    "id": 1
}'|jq

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "from": "0x46340b20830761efd32832a74d7169b29feb9758",
    "gas": "0x502c8",
    "gasUsed": "0x10059",
    "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "input": "0xa9059cbb00000000000000000000000043e2d14a6904b2eb52169a80804533c0d98b3407000000000000000000000000000000000000000000000000000000000eff91b0",
    "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "calls": [
      {
        "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "gas": "0x4d2e2",
        "gasUsed": "0x8f78",
        "to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "input": "0xa9059cbb00000000000000000000000043e2d14a6904b2eb52169a80804533c0d98b3407000000000000000000000000000000000000000000000000000000000eff91b0",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
        "value": "0x0",
        "type": "DELEGATECALL"
      }
    ],
    "value": "0x0",
    "type": "CALL"
  }
}

@holiman
Copy link
Contributor

holiman commented Feb 21, 2023

Please see #26726 (comment)

@holiman holiman closed this as completed Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@holiman @alexqrid and others