Skip to content

Commit

Permalink
remove wait forindexer in donation (#3377)
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra authored Apr 26, 2024
1 parent 3ead64f commit a67679e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/common/src/allo/backends/allo-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit a67679e

Please sign in to comment.