Skip to content

Commit 485aa96

Browse files
committed
fix second occurrence of same pattern
1 parent 3020d26 commit 485aa96

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

cli/src/base_cli/commands/faucet.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ impl FaucetCommand {
4545
let mut nonce = api.get_nonce().unwrap();
4646
for account in &self.accounts {
4747
let to = get_accountid_from_str(account);
48-
let call = OpaqueCall::from_tuple(&compose_call!(
49-
api.metadata(),
50-
"Balances",
51-
"transfer_keep_alive",
52-
MultiAddress::<AccountId, ()>::Id(to.clone()),
53-
Compact(PREFUNDING_AMOUNT)
54-
));
48+
let call = OpaqueCall::from_tuple(
49+
&compose_call!(
50+
api.metadata(),
51+
"Balances",
52+
"transfer_keep_alive",
53+
MultiAddress::<AccountId, ()>::Id(to.clone()),
54+
Compact(PREFUNDING_AMOUNT)
55+
)
56+
.unwrap(),
57+
);
5558
#[allow(clippy::redundant_clone)]
5659
let xt = compose_extrinsic_offline!(api.signer().unwrap(), call, api.extrinsic_params(nonce));
5760
// send and watch extrinsic until finalized

0 commit comments

Comments
 (0)