async Task UpdateBalance()
    {
        Text balanceValue = GameObject.Find("Balance Value").GetComponent <Text>();

        balanceValue.text = (await GetERC20Balance.BalanceOfERC20()).ToString() + " Wei";
        Debug.Log($"Update Balance: {balanceValue.text}");
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     Debug.Log("Start");
     UpdateBalance();
     instance = this;
 }