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 reverted #4208

Open
jacob-chia opened this issue Mar 27, 2024 · 2 comments
Open

debug_traceTransaction reverted #4208

jacob-chia opened this issue Mar 27, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jacob-chia
Copy link

What version of iotex-core image (or code branch) are you using?

v1.13.1

What operating system and processor architecture are you using?

Ubuntu 20.04.1, x86_64

What did you do? If possible, provide a recipe for reproducing the error.

An action is success on scan: https://iotexscan.io/tx/e969d762f8216b32a04f4b827854f1bbcd5e833c073191067e45d8cf2d75884d
But it reverted in debug_traceTransaction, here is my rpc request:

curl http://127.0.0.1:15014/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"debug_traceTransaction","params":["0xe969d762f8216b32a04f4b827854f1bbcd5e833c073191067e45d8cf2d75884d"],"id":1,"jsonrpc":"2.0"}' | jq

What did you expect to see?

A success response

What did you see instead?

debug_tracetx_resp.json
image

@jacob-chia jacob-chia added the bug Something isn't working label Mar 27, 2024
@millken
Copy link
Contributor

millken commented Mar 29, 2024

img_v3_029e_a135abc1-9738-497c-a86f-2b8d207bfcfh
debug_traceTransaction simulates the execution of this tx in the EVM using zero address, the values of msg.sender different from in the real world (0x090dba43bdb643fdf5edfc94ec92203b5881ff69).

The hash computed during the debug_traceTransaction operation does not meet the condition stipulated by require, resulting in revert being returned.

@millken millken closed this as completed Apr 12, 2024
@jacob-chia
Copy link
Author

In the simulation execution, debug_traceTransaction should use tx.from as msg.sender, instead of the 0 address.

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

3 participants