We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20164ee commit 4add8afCopy full SHA for 4add8af
src/parsers/spl.ts
@@ -1,12 +1,12 @@
1
-import type { MintData, TokenAccountData } from "@saberhq/token-utils";
+import type { MintData } from "@saberhq/token-utils";
2
import { deserializeAccount, deserializeMint } from "@saberhq/token-utils";
3
-
+import type { AccountInfo } from "@solana/spl-token";
4
import type { AccountParser } from "./useParsedAccountsData";
5
6
/**
7
* Parses token accounts.
8
*/
9
-export const TOKEN_ACCOUNT_PARSER: AccountParser<TokenAccountData> = (info) => {
+export const TOKEN_ACCOUNT_PARSER: AccountParser<AccountInfo> = (info) => {
10
return {
11
address: info.accountId,
12
...deserializeAccount(info.accountInfo.data),
0 commit comments