Module 0x7::benchmark_utils
use 0x1::account;
use 0x1::aptos_account;
Function transfer_and_create_account
Entry function that creates account resource, and funds the account. This makes sure that transactions later don’t need to create an account, and so actual costs of entry functions can be more precisely measured.
entry fun transfer_and_create_account(source: &signer, to: address, amount: u64)
Implementation
entry fun transfer_and_create_account(
source: &signer, to: address, amount: u64
) {
account::create_account_if_does_not_exist(to);
aptos_account::transfer(source, to, amount);
}