Skip to content

Commit 4add8af

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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),

0 commit comments

Comments
 (0)