We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7124ebd commit 8736651Copy full SHA for 8736651
src/tracing/builder/geth.rs
@@ -295,7 +295,12 @@ impl<'a> GethTraceBuilder<'a> {
295
let mut post_state = AccountState::from_account_info(
296
changed_acc.info.nonce,
297
changed_acc.info.balance,
298
- changed_acc.info.code.as_ref().map(|code| code.original_bytes()),
+ code_enabled
299
+ .then(|| {
300
+ // Note: the changed account from the state output always holds the code
301
+ changed_acc.info.code.as_ref().map(|code| code.original_bytes())
302
+ })
303
+ .flatten(),
304
);
305
306
// handle storage changes
0 commit comments