Skip to content

Commit

Permalink
fix: do not use 'recent' commitment (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: lukas <[email protected]>
  • Loading branch information
mindrunner and mindrunner authored Sep 4, 2024
1 parent 0f9f541 commit c277c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/marketplace/services/GmClientService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ export class GmClientService {

for (const info of currencyInfo) {
const { mint, royalty, saVault } = info;
const tokenSupplylInformation = await connection.getTokenSupply(
mint,
'recent',
);
const tokenSupplylInformation = await connection.getTokenSupply(mint);

const { decimals } = tokenSupplylInformation.value;

Expand Down
5 changes: 1 addition & 4 deletions src/util/scoreHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ export async function confirmTokenBalance(
expectedQuantity: number,
confirmClosed?: boolean,
) {
const tokenData = await provider.connection.getAccountInfo(
tokenAccount,
'recent',
);
const tokenData = await provider.connection.getAccountInfo(tokenAccount);

// Confirm account is closed
if (confirmClosed === true) {
Expand Down

0 comments on commit c277c86

Please sign in to comment.