From 5c96868874cbe433c1656a172df23dcb9f0dee68 Mon Sep 17 00:00:00 2001 From: lukas Date: Wed, 4 Sep 2024 22:51:54 +0200 Subject: [PATCH] fix: do not use 'recent' commitment (#229) Co-authored-by: lukas --- src/marketplace/services/GmClientService.ts | 5 +---- src/util/scoreHelpers.ts | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/marketplace/services/GmClientService.ts b/src/marketplace/services/GmClientService.ts index db292f3..b96be89 100644 --- a/src/marketplace/services/GmClientService.ts +++ b/src/marketplace/services/GmClientService.ts @@ -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; diff --git a/src/util/scoreHelpers.ts b/src/util/scoreHelpers.ts index 3121545..b548a4a 100644 --- a/src/util/scoreHelpers.ts +++ b/src/util/scoreHelpers.ts @@ -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) {