fn check_create_mint_transfer(swarm: &mut LocalSwarm) {
    let client = swarm.validators().next().unwrap().json_rpc_client();
    let transaction_factory = swarm.chain_info().transaction_factory();

    // Create account 0, mint 10 coins and check balance
    let mut account_0 = create_and_fund_account(swarm, 10);
    assert_balance(&client, &account_0, 10);

    // Create account 1, mint 1 coin, transfer 3 coins from account 0 to 1, check balances
    let account_1 = create_and_fund_account(swarm, 1);
    transfer_coins(&client, &transaction_factory, &mut account_0, &account_1, 3);

    assert_balance(&client, &account_0, 7);
    assert_balance(&client, &account_1, 4);

    // Create account 2, mint 15 coins and check balance
    let account_2 = create_and_fund_account(swarm, 15);
    assert_balance(&client, &account_2, 15);
}
/// This helper function creates 3 new accounts, mints funds, transfers funds
/// between the accounts and verifies that these operations succeed.
This helper function creates 3 new accounts, mints funds, transfers funds
between the accounts and verifies that these operations succeed.
This helper function creates 3 new accounts mints funds transfers funds between the accounts and verifies that these operations succeed .
fn check_create_mint_transfer(swarm: &mut LocalSwarm) {
    let client = swarm.validators().next().unwrap().json_rpc_client();
    let transaction_factory = swarm.chain_info().transaction_factory();
    // Create account 0, mint 10 coins and check balance
    let mut account_0 = create_and_fund_account(swarm, 10);
    assert_balance(&client, &account_0, 10);
    // Create account 1, mint 1 coin, transfer 3 coins from account 0 to 1, check balances
    let account_1 = create_and_fund_account(swarm, 1);
    transfer_coins(&client, &transaction_factory, &mut account_0, &account_1, 3);
    assert_balance(&client, &account_0, 7);
    assert_balance(&client, &account_1, 4);
    // Create account 2, mint 15 coins and check balance
    let account_2 = create_and_fund_account(swarm, 15);
    assert_balance(&client, &account_2, 15);
}
fn check_create_mint_transfer ( swarm : & mut LocalSwarm ) { let client = swarm . validators ( ) . next ( ) . unwrap ( ) . json_rpc_client ( ) ; let transaction_factory = swarm . chain_info ( ) . transaction_factory ( ) ; // Create account 0, mint 10 coins and check balance let mut account_0 = create_and_fund_account ( swarm , 10 ) ; assert_balance ( & client , & account_0 , 10 ) ; // Create account 1, mint 1 coin, transfer 3 coins from account 0 to 1, check balances let account_1 = create_and_fund_account ( swarm , 1 ) ; transfer_coins ( & client , & transaction_factory , & mut account_0 , & account_1 , 3 ) ; assert_balance ( & client , & account_0 , 7 ) ; assert_balance ( & client , & account_1 , 4 ) ; // Create account 2, mint 15 coins and check balance let account_2 = create_and_fund_account ( swarm , 15 ) ; assert_balance ( & client , & account_2 , 15 ) ; }
This helper function creates 3 new accounts, mints funds, transfers funds
between the accounts and verifies that these operations succeed.
This helper function creates 3 new accounts mints funds transfers funds between the accounts and verifies that these operations succeed .
swarm
&mut LocalSwarm