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

fix tracing bug: ERC20-XCM transactions were not traced #2429

Merged
merged 4 commits into from
Aug 21, 2023

Conversation

librelois
Copy link
Collaborator

@librelois librelois commented Aug 10, 2023

What does it do?

Fix #2392.

The CallDispatcher implementation trace only calls with Signed Origin, and convert origin on the fly if needed, so we should use the Signed origin instead of the EthereumXcm one.

This PR also add a test to ensure that the fix work.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added B0-silent Changes should not be mentioned in any release notes A10-evmtracing Pull request includes evm tracing functionality D2-notlive PR doesn't change runtime code (so can't be audited) labels Aug 10, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 10, 2023

Coverage generated "Thu Aug 17 14:16:14 UTC 2023":
https://d3ifz9vhxc2wtb.cloudfront.net/pulls/2429/html/index.html

Master coverage: 87.39%
Pull coverage:

@librelois librelois changed the title add tracing test: trace ERC20-XCM transaction fix tracing bug: ERC20-XCM transactions were not traced Aug 17, 2023
@librelois librelois marked this pull request as ready for review August 17, 2023 13:37
@librelois librelois merged commit 63e8bde into master Aug 21, 2023
23 of 26 checks passed
@librelois librelois deleted the elois-test-tracing-erc20-xcm branch August 21, 2023 16:20
grw-ms pushed a commit that referenced this pull request Aug 28, 2023
* add tracing test: trace ERC0-XCM transaction

* fix erc20-xcm origin

* fix test trace erc20 xcm: tracing usedGas does not apply gas refund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A10-evmtracing Pull request includes evm tracing functionality B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XCM transactions aren't accessible via debug_traceBlockByHash method
3 participants