Skip to content

Commit

Permalink
[transaction-emitter] Diem -> Aptos
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Mar 11, 2022
1 parent 3a51ab2 commit c1d53fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/transaction-emitter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ impl<'t, 'd> TxnEmitter<'t, 'd> {
tokio::time::sleep(Duration::from_secs(10)).await;

let seed_rngs = gen_rng_for_reusable_account(actual_num_seed_accounts);
// For each seed account, create a future and transfer diem from that seed account to new accounts
// For each seed account, create a future and transfer coins from that seed account to new accounts
let account_futures = seed_accounts
.into_iter()
.enumerate()
Expand Down Expand Up @@ -778,12 +778,12 @@ pub async fn query_sequence_numbers(
)
}

/// Create `num_new_accounts` by transferring diem from `source_account`. Return Vec of created
/// Create `num_new_accounts` by transferring coins from `source_account`. Return Vec of created
/// accounts
async fn create_new_accounts<R>(
mut source_account: LocalAccount,
num_new_accounts: usize,
diem_per_new_account: u64,
coins_per_new_account: u64,
max_num_accounts_per_batch: u64,
client: RestClient,
txn_factory: &TransactionFactory,
Expand Down Expand Up @@ -814,7 +814,7 @@ where
Currency::XUS,
account.authentication_key(),
false,
diem_per_new_account,
coins_per_new_account,
),
)
})
Expand All @@ -829,11 +829,11 @@ where
Ok(accounts)
}

/// Mint `diem_per_new_account` from `minting_account` to each account in `accounts`.
/// Mint `coins_per_new_account` from `minting_account` to each account in `accounts`.
async fn mint_to_new_accounts<R>(
minting_account: &mut LocalAccount,
accounts: &[LocalAccount],
diem_per_new_account: u64,
coins_per_new_account: u64,
max_num_accounts_per_batch: u64,
client: RestClient,
txn_factory: &TransactionFactory,
Expand All @@ -858,7 +858,7 @@ where
gen_transfer_txn_request(
minting_account,
&account.address(),
diem_per_new_account,
coins_per_new_account,
txn_factory,
0,
)
Expand Down

0 comments on commit c1d53fc

Please sign in to comment.