diff --git a/code/parachain/frame/cosmwasm/cli/src/args.rs b/code/parachain/frame/cosmwasm/cli/src/args.rs index f6f38ebda40..7f4839b4045 100644 --- a/code/parachain/frame/cosmwasm/cli/src/args.rs +++ b/code/parachain/frame/cosmwasm/cli/src/args.rs @@ -187,4 +187,4 @@ pub struct WasmRpcQuery { /// Query request #[arg(short, long)] pub query: String, -} \ No newline at end of file +} diff --git a/code/parachain/frame/cosmwasm/cli/src/substrate/tx.rs b/code/parachain/frame/cosmwasm/cli/src/substrate/tx.rs index 57bbb52574a..930cf9839a8 100644 --- a/code/parachain/frame/cosmwasm/cli/src/substrate/tx.rs +++ b/code/parachain/frame/cosmwasm/cli/src/substrate/tx.rs @@ -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, @@ -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(), @@ -99,7 +98,6 @@ impl CommandRunner { contract, BoundedBTreeMap( funds - .unwrap_or_default() .into_iter() .map(|(asset, amount)| (CurrencyId(asset), (amount, true))) .collect(), diff --git a/flake/dev-shells.nix b/flake/dev-shells.nix index 459c3bdeb40..f9631e79204 100644 --- a/flake/dev-shells.nix +++ b/flake/dev-shells.nix @@ -24,6 +24,7 @@ nodejs openssl process-compose + protobuf python3 rnix-lsp sad