From b3ed18217a25b00a233c4fce2862589cea60a133 Mon Sep 17 00:00:00 2001 From: Manush Sanchela Date: Sun, 10 Nov 2024 10:02:50 +0530 Subject: [PATCH] Checking local manifest for contract tag --- bin/sozo/src/commands/execute.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/sozo/src/commands/execute.rs b/bin/sozo/src/commands/execute.rs index c43ca8f559..87d418789d 100644 --- a/bin/sozo/src/commands/execute.rs +++ b/bin/sozo/src/commands/execute.rs @@ -136,7 +136,13 @@ impl ExecuteArgs { for call_args in call_args_list { let descriptor = call_args.tag_or_address.ensure_namespace(&profile_config.namespace.default); - let contract_address = resolve_contract_address(&descriptor, &world_diff)?; + + // Checking the contract tag in local manifest + let contract_address = if let Some(local_address) = ws.get_contract_address(&descriptor) { + local_address + } else { + resolve_contract_address(&descriptor, &world_diff)? + }; trace!( contract=?descriptor,