diff --git a/crates/sozo/ops/src/migration/mod.rs b/crates/sozo/ops/src/migration/mod.rs index 4c096fe037..b855fc902f 100644 --- a/crates/sozo/ops/src/migration/mod.rs +++ b/crates/sozo/ops/src/migration/mod.rs @@ -193,18 +193,20 @@ async fn update_manifests_and_abis( .find(|c| c.name == output.name.as_ref().unwrap()) .expect("contract got migrated, means it should be present here"); - let salt = generate_salt(&local.name); - local.inner.address = Some(get_contract_address( - salt, - output.base_class_hash, - &[], - migration_output.world_address, - )); - local.inner.base_class_hash = output.base_class_hash; } }); + local_manifest.contracts.iter_mut().for_each(|contract| { + let salt = generate_salt(&contract.name); + contract.inner.address = Some(get_contract_address( + salt, + contract.inner.base_class_hash, + &[], + migration_output.world_address, + )); + }); + // copy abi files from `abi/base` to `abi/deployments/{chain_id}` and update abi path in // local_manifest update_manifest_abis(&mut local_manifest, profile_dir, profile_name).await;