From e5ca44e190e9b02c534341850fe6ac78274f78dd Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 14 Feb 2024 19:14:30 -0800 Subject: [PATCH] fix: allowing token contract to be passed on account lookup --- src/account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/account.ts b/src/account.ts index b5fb093..b24e374 100644 --- a/src/account.ts +++ b/src/account.ts @@ -66,8 +66,8 @@ export class Account { return Asset.Symbol.from(this.data.total_resources.cpu_weight.symbol) } - balance(symbol?: Asset.SymbolType) { - return this.token.balance(this.accountName, symbol) + balance(tokenContract?: NameType, symbol?: Asset.SymbolType) { + return this.token.balance(this.accountName, tokenContract, symbol) } permission(permissionName: NameType): Permission {