浏览代码

small fix

Rimmon 3 年之前
父节点
当前提交
dd36354708
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Pages/ModalAssets.razor

+ 2 - 1
Pages/ModalAssets.razor

@@ -105,7 +105,8 @@
     public async Task Balances()
     {
         ethBalance = await _account.GetBalance();
-        tokenBalance = await bcMain.BalanceOf("0xe5D682717955d6C35d465A3485625C64655a04f4", _account.GetActualAddress(bcMain));
+        var bc = await _account.GetSelectedBlockChain();
+        tokenBalance = await bc.BalanceOf("0xe5D682717955d6C35d465A3485625C64655a04f4", _account.GetActualAddress(bc));
     }
 
     public async Task Open(Models.AccountModel account)