Reputation: 2270
Getting balance of fungible token in near_sdk_sim is
let bob = root.create_user("bob".to_string(), to_yocto("1000000"));
let bob_balance: U128 =
view!(contract.ft_balance_of(bob.valid_account_id())).unwrap_json();
assert_eq!(bob_balance.0, 5000);
But how to get the near balance of account bob?
Upvotes: 2
Views: 312