Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Aug 21, 2024
1 parent b7e8acb commit 5c457f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rpc-state-reader/src/blockifier_state_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ pub fn execute_tx_configurable_with_state(
let network = parse_to_rpc_chain(&chain_id.to_string());
// we need to retrieve the next block in order to get the contract_class
let next_block_state_reader = RpcStateReader(
RpcState::new_rpc(network, (block_number.next()).unwrap().into())
.unwrap(),
RpcState::new_rpc(network, (block_number.next()).unwrap().into()).unwrap(),
);
let contract_class = next_block_state_reader
.get_compiled_contract_class(tx.class_hash())
Expand Down Expand Up @@ -498,7 +497,7 @@ fn parse_to_rpc_chain(network: &str) -> RpcChain {
"alpha-mainnet" => RpcChain::MainNet,
"alpha4" => RpcChain::TestNet,
"alpha4-2" => RpcChain::TestNet2,
_ => panic!("Invalid network name {}", network)
_ => panic!("Invalid network name {}", network),
}
}

Expand Down

0 comments on commit 5c457f0

Please sign in to comment.