From 2c6765d52887b585d9cbeabf56bfdf271804461a Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 11 Oct 2023 19:07:01 -0700 Subject: [PATCH] enhancement: allowing to pass responseType on get_account call --- src/api/v1/chain.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/v1/chain.ts b/src/api/v1/chain.ts index e51375d..6986d1b 100644 --- a/src/api/v1/chain.ts +++ b/src/api/v1/chain.ts @@ -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, }) }