Skip to content

Commit

Permalink
obtain compressed bytecodes from vm.push_transction (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec authored Nov 25, 2024
1 parent 2b24554 commit e7ecb68
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/node/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,9 +1380,11 @@ impl<S: ForkSource + std::fmt::Debug + Clone> InMemoryNode<S> {
}
.into_tracer_pointer(),
];
let (compressed_bytecodes, tx_result) =
vm.inspect_transaction_with_bytecode_compression(&mut tracers.into(), tx.clone(), true);
let compressed_bytecodes = compressed_bytecodes.context("failed compressing bytecodes")?;
let compressed_bytecodes = vm
.push_transaction(tx.clone())
.compressed_bytecodes
.into_owned();
let tx_result = vm.inspect(&mut tracers.into(), InspectExecutionMode::OneTx);

let call_traces = call_tracer_result.get().unwrap();

Expand Down

0 comments on commit e7ecb68

Please sign in to comment.