Skip to content

Commit 1a98634

Browse files
committed
fix build with js-tracer feature
1 parent bf15a7a commit 1a98634

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • crates/anvil/src/eth/backend/mem

crates/anvil/src/eth/backend/mem/mod.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,12 @@ impl Backend {
22562256
let result = evm.transact(env.tx.clone())?;
22572257
let res = evm
22582258
.inspector_mut()
2259-
.json_result(result, &env.tx.into_tx_env(), &block, &cache_db)
2259+
.json_result(
2260+
result,
2261+
&alloy_evm::IntoTxEnv::<TxEnv>::into_tx_env(env.tx),
2262+
&block,
2263+
&cache_db,
2264+
)
22602265
.map_err(|err| BlockchainError::Message(err.to_string()))?;
22612266

22622267
Ok(GethTrace::JS(res))
@@ -3047,7 +3052,7 @@ impl Backend {
30473052
let trace = inspector
30483053
.json_result(
30493054
result,
3050-
&alloy_evm::IntoTxEnv::into_tx_env(tx_env),
3055+
&alloy_evm::IntoTxEnv::<TxEnv>::into_tx_env(tx_env),
30513056
&env.evm_env.block_env,
30523057
&cache_db,
30533058
)

0 commit comments

Comments
 (0)