Skip to content

Commit

Permalink
Hardcode FRONTIER in cast
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Sep 4, 2022
1 parent 37edeb5 commit e26003a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/cmd/cast/run.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{cmd::Cmd, init_progress, update_progress, utils::consume_config_rpc_url};
use cast::{
revm::TransactTo,
revm::{TransactTo,SpecId},
trace::{identifier::SignaturesIdentifier, CallTraceDecoder},
};
use clap::Parser;
Expand Down Expand Up @@ -100,6 +100,7 @@ impl RunArgs {

let mut env = executor.env().clone();
env.block.number = tx_block_number.into();
env.cfg.spec_id = SpecId::FRONTIER;

let block = provider.get_block_with_txs(tx_block_number).await?;
if let Some(ref block) = block {
Expand Down

0 comments on commit e26003a

Please sign in to comment.