mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 08:21:05 +00:00
Fix panic message (#3407)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user