From 39fb34c75fd46fbb562846f3bf54b79c9b0c42bc Mon Sep 17 00:00:00 2001 From: Crypto Dypto Date: Thu, 11 Aug 2022 09:09:09 -0700 Subject: [PATCH] fix token account parser type --- src/parsers/spl.ts | 6 +++--- src/tx/useHandleTXs.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parsers/spl.ts b/src/parsers/spl.ts index 23298dd..32a50e8 100644 --- a/src/parsers/spl.ts +++ b/src/parsers/spl.ts @@ -1,12 +1,12 @@ -import type { MintData, TokenAccountData } from "@saberhq/token-utils"; +import type { MintData } from "@saberhq/token-utils"; import { deserializeAccount, deserializeMint } from "@saberhq/token-utils"; - +import type { AccountInfo } from "@solana/spl-token"; import type { AccountParser } from "./useParsedAccountsData"; /** * Parses token accounts. */ -export const TOKEN_ACCOUNT_PARSER: AccountParser = (info) => { +export const TOKEN_ACCOUNT_PARSER: AccountParser = (info) => { return { address: info.accountId, ...deserializeAccount(info.accountInfo.data), diff --git a/src/tx/useHandleTXs.ts b/src/tx/useHandleTXs.ts index 98b9e5b..34c4795 100644 --- a/src/tx/useHandleTXs.ts +++ b/src/tx/useHandleTXs.ts @@ -282,7 +282,7 @@ export const useHandleTXsInternal = ({ if (waitForConfirmation) { // await for the tx to be confirmed - await Promise.all(pending.map(async (p) => await p.wait())); + await Promise.all(pending.map((p) => p.wait())); } return {