Fix panic message (#3407)

This commit is contained in:
Yuanchao Sun
2019-08-15 22:45:14 +08:00
committed by Gavin Wood
parent be732a2d68
commit 8977dd2d40
+2 -2
View File
@@ -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");