We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b1b19 commit 1584562Copy full SHA for 1584562
1 file changed
docs/content/docs/token-2022/wallet.md
@@ -174,11 +174,11 @@ const token2022Accounts = await connection.getTokenAccountsByOwner(
174
);
175
const accountsWithProgramId = [...tokenAccounts.value, ...token2022Accounts.value].map(
176
({ account, pubkey }) =>
177
- {
+ ({
178
account,
179
pubkey,
180
programId: account.data.program === 'spl-token' ? TOKEN_PROGRAM_ID : TOKEN_2022_PROGRAM_ID,
181
- },
+ }),
182
183
184
// later on...
0 commit comments