Skip to content

Commit

Permalink
fix: anchor adress issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavaparoksham committed May 15, 2024
1 parent 406cfd0 commit 448b286
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/common/src/allo/backends/allo-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1184,14 +1184,18 @@ export class AlloV2 implements Allo {

// Filter projects to be paid from matching results
const projectsToBePaid = matchingResults.filter((project) =>
args.projectIdsToBePaid.includes(project.projectId)
args.projectIdsToBePaid.includes(project.anchorAddress ?? "")
);

const projectsWithMerkleProof: ProjectWithMerkleProof[] = [];

projectsToBePaid.forEach((project) => {
if (!project.index) {
throw new AlloError("Project index is required");
if (project.index === 0) {
// do nothing
} else {
throw new AlloError("Project index is required");
}
}
if (!project.anchorAddress) {
throw new AlloError("Anchor address is required");
Expand Down

0 comments on commit 448b286

Please sign in to comment.