Skip to content

Commit

Permalink
use async await syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictwlee committed Dec 7, 2021
1 parent cd92869 commit 52213eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/src/program/namespace/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ export class AccountClient<
return await pubkeyUtil.associated(this._programId, ...args);
}

getAccountInfo(
async getAccountInfo(
address: Address,
commitment?: Commitment
): Promise<AccountInfo<Buffer> | null> {
return this._provider.connection.getAccountInfo(
return await this._provider.connection.getAccountInfo(
translateAddress(address),
commitment
);
Expand Down

0 comments on commit 52213eb

Please sign in to comment.