Skip to content

Commit

Permalink
fix small bug: onchain_block_number unwrap (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
zorrosword authored Aug 24, 2023
1 parent 47c768a commit 83298ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub fn evm_main(args: EvmArgs) {
match args.chain_type {
Some(chain_str) => {
let chain = Chain::from_str(&chain_str).expect("Invalid chain type");
let block_number = args.onchain_block_number.unwrap();
let block_number = args.onchain_block_number.unwrap_or(0);
Some(OnChainConfig::new(chain, block_number))
}
None => Some(OnChainConfig::new_raw(
Expand Down

0 comments on commit 83298ad

Please sign in to comment.