Skip to content

Commit

Permalink
enhancement: allowing to pass responseType on get_account call
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 12, 2023
1 parent bfd0776 commit 2c6765d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/v1/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export class ChainAPI {
})
}

async get_account(accountName: NameType) {
async get_account(accountName: NameType, responseType = AccountObject) {
return this.client.call({
path: '/v1/chain/get_account',
params: {account_name: Name.from(accountName)},
responseType: AccountObject,
responseType: responseType,
})
}

Expand Down

0 comments on commit 2c6765d

Please sign in to comment.