From cea757ccc0a6a741a40c02c8542e3ec0b41b5501 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 29 Mar 2022 11:05:16 +0100 Subject: [PATCH 1/2] Allow multiple values for call and instantiate commands --- src/cmd/extrinsics/call.rs | 2 +- src/cmd/extrinsics/instantiate.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/extrinsics/call.rs b/src/cmd/extrinsics/call.rs index ff95e4ad..45b82dcd 100644 --- a/src/cmd/extrinsics/call.rs +++ b/src/cmd/extrinsics/call.rs @@ -39,7 +39,7 @@ pub struct CallCommand { #[clap(long, short)] message: String, /// The arguments of the contract message to call. - #[clap(long)] + #[clap(long, multiple_values = true)] args: Vec, #[clap(flatten)] extrinsic_opts: ExtrinsicOpts, diff --git a/src/cmd/extrinsics/instantiate.rs b/src/cmd/extrinsics/instantiate.rs index 57a984ed..cd598dfa 100644 --- a/src/cmd/extrinsics/instantiate.rs +++ b/src/cmd/extrinsics/instantiate.rs @@ -50,7 +50,7 @@ pub struct InstantiateCommand { #[clap(name = "constructor", long, default_value = "new")] constructor: String, /// The constructor arguments, encoded as strings - #[clap(long)] + #[clap(long, multiple_values = true)] args: Vec, #[clap(flatten)] extrinsic_opts: ExtrinsicOpts, -- GitLab From db84e7d3c09cfe7885ba812fd48e65bc7f46a636 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 29 Mar 2022 11:19:51 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ca650a2..8da02338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Allow multiple args values for call and instantiate commands - [#480](https://github.com/paritytech/cargo-contract/pull/480) +- Fix event decoding - [c721b1](https://github.com/paritytech/cargo-contract/commit/c721b19519e579de41217aa347625920925d8040) + ## [1.1.0] - 2022-03-18 ### Added -- GitLab