Skip to content

Commit

Permalink
fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Jul 25, 2023
1 parent 5ada135 commit 2b7152f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/parachain/frame/cosmwasm/cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ pub struct WasmRpcQuery {
/// Query request
#[arg(short, long)]
pub query: String,
}
}
6 changes: 2 additions & 4 deletions code/parachain/frame/cosmwasm/cli/src/substrate/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl CommandRunner {
TxSubcommands::Instantiate2(WasmInstantiate2 {
salt,
instantiate:
WasmInstantiate { gas, code_id_int64, admin, label, amount, json_encoded_init_args },
WasmInstantiate { gas, code_id_int64, admin, label, funds, json_encoded_init_args },
}) => {
let events = do_signed_transaction(
chain_endpoint,
Expand All @@ -77,8 +77,7 @@ impl CommandRunner {
admin,
BoundedVec(label.into()),
BoundedBTreeMap(
amount
.unwrap_or_default()
funds
.into_iter()
.map(|(asset, amount)| (CurrencyId(asset), (amount, true)))
.collect(),
Expand All @@ -99,7 +98,6 @@ impl CommandRunner {
contract,
BoundedBTreeMap(
funds
.unwrap_or_default()
.into_iter()
.map(|(asset, amount)| (CurrencyId(asset), (amount, true)))
.collect(),
Expand Down
1 change: 1 addition & 0 deletions flake/dev-shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
nodejs
openssl
process-compose
protobuf
python3
rnix-lsp
sad
Expand Down

0 comments on commit 2b7152f

Please sign in to comment.