Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
notlesh committed Aug 14, 2024
1 parent 7271c79 commit 60991aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 2 additions & 6 deletions crates/bin/prove_block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,8 @@ async fn main() -> Result<(), Box<dyn Error>> {

let generic_cc = generic_sierra_cc.compile()?;

let (_contract_class_hash, compiled_contract_hash) = write_class_facts(
generic_sierra_cc,
generic_cc.clone(),
&mut initial_state.ffc_for_class_hash,
)
.await?;
let (_contract_class_hash, compiled_contract_hash) =
write_class_facts(generic_sierra_cc, generic_cc.clone(), &mut initial_state.ffc_for_class_hash).await?;

class_hash_to_compiled_class_hash.insert(class_hash, compiled_contract_hash.into());
compiled_classes.insert(compiled_contract_hash.into(), generic_cc.clone());
Expand Down
6 changes: 5 additions & 1 deletion crates/bin/prove_block/src/rpc_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ pub(crate) async fn get_class_proofs(
// Utility to extract all contract address in a nested call structure. Any given call can have
// nested calls, creating a tree structure of calls, so this fn traverses this structure and
// returns a flat list of all contracts encountered along the way.
pub(crate) fn process_function_invocations(inv: FunctionInvocation, contracts: &mut HashSet<Felt252>, nesting_level: u64) {
pub(crate) fn process_function_invocations(
inv: FunctionInvocation,
contracts: &mut HashSet<Felt252>,
nesting_level: u64,
) {
log::info!("process_function_inv: contract: {:x} at level {}", inv.contract_address, nesting_level);
contracts.insert(inv.contract_address);
for call in inv.calls {
Expand Down

0 comments on commit 60991aa

Please sign in to comment.