Skip to content

Commit

Permalink
Use variable for code_id when querying wasm contract by code
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Aug 13, 2024
1 parent 38399fc commit 217c217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/test-framework/src/chain/cli/wasm/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub fn query_wasm_list_contracts_by_code(
command_path: &str,
home_path: &str,
rpc_listen_address: &str,
code_id: &str,
) -> Result<String, Error> {
let exec_output = simple_exec(
chain_id,
Expand All @@ -60,7 +61,7 @@ pub fn query_wasm_list_contracts_by_code(
"query",
"wasm",
"list-contract-by-code",
"1",
code_id,
"--output",
"json",
],
Expand Down
1 change: 1 addition & 0 deletions tools/test-framework/src/chain/ext/async_icq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ impl<'a, Chain: Send> AsyncIcqMethodsExt<Chain> for MonoTagged<Chain, &'a ChainD
&driver.command_path,
&driver.home_path,
&driver.rpc_listen_address(),
&wasm_code,
)?;

update_oracle(
Expand Down

0 comments on commit 217c217

Please sign in to comment.