Skip to content

Commit dd10fc9

Browse files
authored
Merge pull request #170 from hyperweb-io/fix-get-base-account
fix not extensible issue
2 parents a4bae4b + fc5aa99 commit dd10fc9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

networks/cosmos/src/query/cosmos-query-client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,13 @@ export class CosmosQueryClient implements ICosmosQueryClient {
327327
// Account queries
328328
async getBaseAccount(address: string): Promise<BaseAccount | null> {
329329
try {
330-
const response = await getAccount(this, { address });
330+
// Create a plain RPC object so getAccount can mutate it
331+
const rpc = {
332+
request: (service: string, method: string, data: Uint8Array) =>
333+
this.request(service, method, data),
334+
};
335+
336+
const response = await getAccount(rpc, { address });
331337

332338
if (!response.account) {
333339
return null;

0 commit comments

Comments
 (0)