diff --git a/substrate/subkey/src/main.rs b/substrate/subkey/src/main.rs index fde301b44f25c7b9954a8517a7c7f56579f46cdc..8f32ddb7d39c7082c93f082d10baf517e087037f 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");