fuels_test_helpers

Function setup_single_asset_coins

Source
pub fn setup_single_asset_coins(
    owner: &Bech32Address,
    asset_id: AssetId,
    num_coins: u64,
    amount_per_coin: u64,
) -> Vec<Coin>
Expand description

Create a vector of num_coins UTXOs containing amount_per_coin amount of asset asset_id. The output of this function can be used with setup_test_provider to get a client with some pre-existing coins, but with only one asset ID.