Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion libs/src/services/solana/tokenAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ export async function getTokenAccountInfo({
solanaTokenProgramKey,
Keypair.generate()
)
const info = await token.getAccountInfo(tokenAccountAddressKey)

// Fetch token info with 'processed commitment to get any recently changed amounts.
// NOTE: Our version of spl-token omits the second argument
// in the type definitions even though it's actually available,
// so we suppress error until we can upgrade.
// @ts-ignore
const info = await token.getAccountInfo(tokenAccountAddressKey, 'processed')
return info
}

Expand Down