Skip to content

Commit

Permalink
fix token account parser type
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto Dypto committed Aug 11, 2022
1 parent 20164ee commit 39fb34c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/parsers/spl.ts
Original file line number Diff line number Diff line change
@@ -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<TokenAccountData> = (info) => {
export const TOKEN_ACCOUNT_PARSER: AccountParser<AccountInfo> = (info) => {
return {
address: info.accountId,
...deserializeAccount(info.accountInfo.data),
Expand Down
2 changes: 1 addition & 1 deletion src/tx/useHandleTXs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39fb34c

Please sign in to comment.