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): don't overwrite selfdestruct_address #190

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Sep 7, 2024

fix paradigmxyz/reth#10755

// selfdestructs are not recorded as individual call traces but are derived from
// the call trace and are added as additional `TransactionTrace` objects in the
// trace array

this reminds me of selfdestruct reuses the call's struct, so we can't rewrite the call's address, especially in delegatecall

waiting for the new release of https://github.com/bluealloy/revm

Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
@mattsse mattsse merged commit bf6ee2a into paradigmxyz:main Sep 18, 2024
11 checks passed
@jsvisa jsvisa deleted the selfdestruct-no-overwrite branch September 19, 2024 01:51
lwedge99 pushed a commit to sentioxyz/revm-inspectors that referenced this pull request Oct 8, 2024
fix paradigmxyz/reth#10755


https://github.com/paradigmxyz/revm-inspectors/blob/e8a5f56a7270a404408c83b4b92977d9d013882f/src/tracing/builder/parity.rs#L234-L236

this reminds me of `selfdestruct` reuses the call's struct, so we can't
rewrite the call's `address`, especially in `delegatecall`

waiting for the new release of https://github.com/bluealloy/revm

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

delegate trace's to_address incorrect when including a suicide trace
2 participants