From 8977dd2d4033453a07f4ab263145c11cd092c35a Mon Sep 17 00:00:00 2001 From: Yuanchao Sun <yuanchao.sun@gmail.com> Date: Thu, 15 Aug 2019 22:45:14 +0800 Subject: [PATCH] Fix panic message (#3407) --- substrate/subkey/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/subkey/src/main.rs b/substrate/subkey/src/main.rs index fde301b44f2..8f32ddb7d39 100644 --- a/substrate/subkey/src/main.rs +++ b/substrate/subkey/src/main.rs @@ -168,7 +168,7 @@ fn execute<C: Crypto>(matches: clap::ArgMatches) where let index = matches.value_of("index") .expect("parameter is required; thus it can't be None; qed"); let index = str::parse::<Index>(index) - .expect("Invalid 'amount' parameter; expecting an integer."); + .expect("Invalid 'index' parameter; expecting an integer."); let function = Call::Balances(BalancesCall::transfer(to.into(), amount)); @@ -208,7 +208,7 @@ fn execute<C: Crypto>(matches: clap::ArgMatches) where let index = matches.value_of("nonce") .expect("nonce is required; thus it can't be None; qed"); let index = str::parse::<Index>(index) - .expect("Invalid 'index' parameter; expecting an integer."); + .expect("Invalid 'nonce' parameter; expecting an integer."); let call = matches.value_of("call") .expect("call is required; thus it can't be None; qed"); -- GitLab