Skip to content

Commit

Permalink
wasm: Instantiate2 working.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Aug 15, 2024
1 parent 970049e commit 4bedf13
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/setup/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,18 @@ impl TestContext {

// Optional flags
let admin_part = admin
.map(|admin| format!("--admin {admin}"))
.unwrap_or(String::from("--no-admin"));
.map(|admin| format!("--admin {admin} "))
.unwrap_or(String::from("--no-admin "));
let amt_part = funds
.map(|funds| format!("--amount {funds}"))
.map(|funds| format!("--amount {funds} "))
.unwrap_or_default();
let fix_msg_part = fix_msg
.map(|fix_msg| format!("--fix_msg {fix_msg}"))
.map(|fix_msg| format!("--fix_msg {fix_msg} "))
.unwrap_or_default();

let receipt = chain.rb.tx(
&format!("tx wasm instantiate2 {code_id} {msg} {salt} --label {label} {admin_part} {amt_part} {fix_msg_part} --from {key}"),
true,
&format!("tx wasm instantiate2 {code_id} {msg} {salt} --label {label} {admin_part}{amt_part}{fix_msg_part}--from {key}"),
false,
)?;

self.guard_tx_errors(
Expand Down

0 comments on commit 4bedf13

Please sign in to comment.