mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 02:37:58 +00:00
Fix substrate factory CLI command (#3239)
* CLI execution flag for import-blocks and factory. * Fix minimum_balance bug with CLI factory.
This commit is contained in:
committed by
Bastian Köcher
parent
c9c0ad4756
commit
8aa367c27a
@@ -83,13 +83,8 @@ where
|
||||
let seed = factory_state.start_number() + factory_state.block_no();
|
||||
let to = RA::gen_random_account_id(&seed);
|
||||
|
||||
let amount;
|
||||
if factory_state.round() == RA::Number::zero() {
|
||||
amount = RA::minimum_balance() * factory_state.rounds();
|
||||
} else {
|
||||
let rounds_left = factory_state.rounds() - factory_state.round();
|
||||
amount = RA::minimum_balance() * rounds_left;
|
||||
};
|
||||
let rounds_left = factory_state.rounds() - factory_state.round();
|
||||
let amount = RA::minimum_balance() * rounds_left.into();
|
||||
|
||||
let transfer = factory_state.transfer_extrinsic(
|
||||
&from.0,
|
||||
|
||||
Reference in New Issue
Block a user