paradigmxyz / revm-inspectors

EVM Execution Hooks.
Apache License 2.0
183 stars 71 forks source link

fix: track selfdestruct transferred value separately #153

Closed mattsse closed 4 months ago

mattsse commented 4 months ago

in https://github.com/paradigmxyz/revm-inspectors/commit/ee6f6be412c61a494472468c37bc7b8bc292b458 we updated

node.trace.value = value; with the selfdestruct value transfer.

this results in incorrect traces for original call: https://github.com/paradigmxyz/reth/issues/9124

This tracks the transferred value in a separate field similar to refund address.