Skip to content

Commit 39fb34c

Browse files
author
Crypto Dypto
committed
fix token account parser type
1 parent 20164ee commit 39fb34c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/parsers/spl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { MintData, TokenAccountData } from "@saberhq/token-utils";
1+
import type { MintData } from "@saberhq/token-utils";
22
import { deserializeAccount, deserializeMint } from "@saberhq/token-utils";
3-
3+
import type { AccountInfo } from "@solana/spl-token";
44
import type { AccountParser } from "./useParsedAccountsData";
55

66
/**
77
* Parses token accounts.
88
*/
9-
export const TOKEN_ACCOUNT_PARSER: AccountParser<TokenAccountData> = (info) => {
9+
export const TOKEN_ACCOUNT_PARSER: AccountParser<AccountInfo> = (info) => {
1010
return {
1111
address: info.accountId,
1212
...deserializeAccount(info.accountInfo.data),

src/tx/useHandleTXs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export const useHandleTXsInternal = ({
282282

283283
if (waitForConfirmation) {
284284
// await for the tx to be confirmed
285-
await Promise.all(pending.map(async (p) => await p.wait()));
285+
await Promise.all(pending.map((p) => p.wait()));
286286
}
287287

288288
return {

0 commit comments

Comments
 (0)