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

trace_block API can't decode return value #12731

Open
rvagg opened this issue Nov 28, 2024 · 1 comment
Open

trace_block API can't decode return value #12731

rvagg opened this issue Nov 28, 2024 · 1 comment

Comments

@rvagg
Copy link
Member

rvagg commented Nov 28, 2024

From an ecosystem partner, I'm capturing this while it's fresh:

{"level":"warn","ts":"2024-11-28T11:01:34.473+1100","logger":"rpc","caller":"[email protected]/handler.go:474","msg":"error in RPC call to 'Filecoin.EthTraceBlock': failed building traces for msg bafy2bzacectxklaz54fxrxkkzrbgbk7tvbm3jdikgyxgo6dinukrge6khnwqu:
    github.com/filecoin-project/lotus/node/impl/full.(*EthModule).EthTraceBlock
        /home/rvagg/go/src/github.com/filecoin-project/lotus/node/impl/full/eth.go:1102
  - at trace []:
    github.com/filecoin-project/lotus/node/impl/full.buildTraces
        /home/rvagg/go/src/github.com/filecoin-project/lotus/node/impl/full/eth_trace.go:169
  - EAM called with invalid params or returned an invalid result, but it still tried to construct the contract:
    github.com/filecoin-project/lotus/node/impl/full.traceEthCreate
        /home/rvagg/go/src/github.com/filecoin-project/lotus/node/impl/full/eth_trace.go:489
  - failed to decode return value:
    github.com/filecoin-project/lotus/node/impl/full.decodeReturn[...]
        /home/rvagg/go/src/github.com/filecoin-project/lotus/node/impl/full/eth_trace.go:74
  - cbor input should be of type array"}

Using a 1.30.0 calibnet node with:

curl -s -X POST -H "Content-Type: application/json" --data '{"method":"Filecoin.EthTraceBlock","params":["0x1c6b63"],"id":2,"jsonrpc":"2.0"}' http://127.0.0.1:1235/rpc/v1
@rvagg
Copy link
Member Author

rvagg commented Nov 28, 2024

Block is bafy2bzacectxklaz54fxrxkkzrbgbk7tvbm3jdikgyxgo6dinukrge6khnwqu and it's a revert on EAM Create. https://calibration.filfox.info/en/message/bafy2bzacectxklaz54fxrxkkzrbgbk7tvbm3jdikgyxgo6dinukrge6khnwqu?t=1

Fixed in #12730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📌 Triage
Development

No branches or pull requests

1 participant