mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: remove unused map_err (#7837)
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
This commit is contained in:
@ -101,24 +101,16 @@ where
|
|||||||
env: Env::boxed(cfg.cfg_env.clone(), block_env.clone(), tx),
|
env: Env::boxed(cfg.cfg_env.clone(), block_env.clone(), tx),
|
||||||
handler_cfg: cfg.handler_cfg,
|
handler_cfg: cfg.handler_cfg,
|
||||||
};
|
};
|
||||||
let (result, state_changes) = this
|
let (result, state_changes) = this.trace_transaction(
|
||||||
.trace_transaction(
|
opts.clone(),
|
||||||
opts.clone(),
|
env,
|
||||||
env,
|
&mut db,
|
||||||
&mut db,
|
Some(TransactionContext {
|
||||||
Some(TransactionContext {
|
block_hash,
|
||||||
block_hash,
|
tx_hash: Some(tx_hash),
|
||||||
tx_hash: Some(tx_hash),
|
tx_index: Some(index),
|
||||||
tx_index: Some(index),
|
}),
|
||||||
}),
|
)?;
|
||||||
)
|
|
||||||
.map_err(|err| {
|
|
||||||
results.push(TraceResult::Error {
|
|
||||||
error: err.to_string(),
|
|
||||||
tx_hash: Some(tx_hash),
|
|
||||||
});
|
|
||||||
err
|
|
||||||
})?;
|
|
||||||
|
|
||||||
results.push(TraceResult::Success { result, tx_hash: Some(tx_hash) });
|
results.push(TraceResult::Success { result, tx_hash: Some(tx_hash) });
|
||||||
if transactions.peek().is_some() {
|
if transactions.peek().is_some() {
|
||||||
|
|||||||
Reference in New Issue
Block a user