Skip to content

Commit

Permalink
fix: allowing token contract to be passed on account lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Feb 15, 2024
1 parent 1758726 commit e5ca44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class Account<Data extends API.v1.AccountObject = API.v1.AccountObject> {
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 {
Expand Down

0 comments on commit e5ca44e

Please sign in to comment.