From a67679eaccff378911d8046220e7c64d32c9c465 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 26 Apr 2024 14:46:36 +0800 Subject: [PATCH] remove wait forindexer in donation (#3377) --- packages/common/src/allo/backends/allo-v2.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/common/src/allo/backends/allo-v2.ts b/packages/common/src/allo/backends/allo-v2.ts index 399f9a680f..1f9603081e 100644 --- a/packages/common/src/allo/backends/allo-v2.ts +++ b/packages/common/src/allo/backends/allo-v2.ts @@ -198,10 +198,6 @@ export class AlloV2 implements Allo { 60_000, publicClient ); - await this.waitUntilIndexerSynced({ - chainId: this.chainId, - blockNumber: receipt.blockNumber, - }); return receipt; } else { throw tx.error; @@ -696,13 +692,11 @@ export class AlloV2 implements Allo { throw new AlloError("DirectGrants is not supported yet!"); } - const strategyInstance = new DonationVotingMerkleDistributionStrategy( - { - chain: this.chainId, - poolId: BigInt(args.roundId), - address: args.strategyAddress, - } - ); + const strategyInstance = new DonationVotingMerkleDistributionStrategy({ + chain: this.chainId, + poolId: BigInt(args.roundId), + address: args.strategyAddress, + }); const totalApplications = await strategyInstance.recipientsCounter();