Skip to content

Commit

Permalink
Checking local manifest for contract tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Manush-2005 committed Nov 10, 2024
1 parent 1ee5e0a commit b3ed182
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/sozo/src/commands/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3ed182

Please sign in to comment.