I set up two assets for my wallet. but the when i get the balance, it shows 0.
setup_contract_test!(Wallets("wallet1"));
let coins = setup_custom_assets_coins(wallet1.address(), &assest_configs);
// balance is zero
let balance = wallet1.get_asset_balance(&coins[0].asset_id).await.unwrap();
I printed out the coins[0]
. it actually has amount.
Coin { amount: 1000000000, block_created: 0, asset_id: 0202020202020202020202020202020202020202020202020202020202020202, utxo_id: UtxoId { tx_id: a745059a83773aa152285b2d5c8b4a0a822217ba8ae75908f78b744b75f05e2d, output_index: 0 }, maturity: 0, owner: Bech32Address { hrp: "fuel", hash: 09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db }, status: Unspent }
why does the get_asset_balance
returns 0?