Skip to content

Commit

Permalink
fix deserialize and add some things for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
JereSalo committed Nov 25, 2024
1 parent d6c3f37 commit f4779da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cmd/ef_tests/levm/deserialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ impl<'de> Deserialize<'de> for EFTests {
sender: raw_tx.sender,
to: raw_tx.to.clone(),
value: *value,
blob_versioned_hashes: raw_tx.blob_versioned_hashes.clone(),
max_fee_per_blob_gas: raw_tx.max_fee_per_blob_gas,
max_priority_fee_per_gas: raw_tx.max_priority_fee_per_gas,
max_fee_per_gas: raw_tx.max_fee_per_gas,
};
transactions.insert((data_id, gas_limit_id, value_id), tx);
}
Expand Down
7 changes: 4 additions & 3 deletions cmd/ef_tests/levm/runner/revm_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ pub fn prepare_revm_for_tx<'state>(
max_fee_per_blob_gas: None,
authorization_list: None,
};

// dbg!(&block_env);
// dbg!(&tx_env);

let evm_builder = Revm::builder()
.with_block_env(block_env)
.with_tx_env(tx_env)
Expand Down Expand Up @@ -336,9 +340,6 @@ pub fn run_ef_test_tx(vector: &TestVector, test: &EFTest) -> Result<(), EFTestRu
let revm_execution_result = revm.transact_commit();
drop(revm); // Need to drop the state mutable reference.

// ensure post state revm
// dbg!(&revm_execution_result);

ensure_post_state_revm(revm_execution_result, vector, test, &mut state)?;

Ok(())
Expand Down

0 comments on commit f4779da

Please sign in to comment.