Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencartavia committed May 17, 2024
1 parent 74fc620 commit 8f0f4d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/sozo/ops/src/migration/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,9 +699,6 @@ where
P: Provider + Sync + Send + 'static,
{
ui.print("\n📋 Migration Strategy\n");
if let Some(world) = &strategy.world {
ui.print_sub(format!("declare (contract address: {:#x})\n", world.contract_address));
}

if let Some(base) = &strategy.base {
ui.print_header("# Base Contract");
Expand All @@ -711,6 +708,7 @@ where
if let Some(world) = &strategy.world {
ui.print_header("# World");
ui.print_sub(format!("declare (class hash: {:#x})\n", world.diff.local_class_hash));
ui.print_sub(format!("declare (contract address: {:#x})\n", world.contract_address));
}

if !&strategy.models.is_empty() {
Expand All @@ -735,8 +733,6 @@ where
for c in &strategy.contracts {
let op_name = get_contract_operation_name(provider, c, strategy.world_address).await;
ui.print_sub(format!("{op_name} (class hash: {:#x})", c.diff.local_class_hash));
let contract_address = get_contract_address(c.salt, c.diff.base_class_hash, &[], c.contract_address);
ui.print_sub(format!("{op_name} (contract address: {:#x})", contract_address));
}
ui.print(" ");
}
Expand Down

0 comments on commit 8f0f4d8

Please sign in to comment.