Skip to content

Commit

Permalink
chore: rm console log
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavaparoksham committed May 15, 2024
1 parent f49339d commit 7a5f45c
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions packages/common/src/allo/backends/allo-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,20 +1217,14 @@ export class AlloV2 implements Allo {
amount: BigInt(distribution[3].toString()),
merkleProof: validMerkleProof as Address[],
});

console.log("projectsWithMerkleProof", projectsWithMerkleProof);

});

const strategy = new DonationVotingMerkleDistributionStrategy({
chain: this.chainId,
poolId: poolId,
});

const txData = strategy.distribute(
recipientIds,
projectsWithMerkleProof,
);
const txData = strategy.distribute(recipientIds, projectsWithMerkleProof);

const txResult = await sendRawTransaction(this.transactionSender, {
to: txData.to,
Expand Down Expand Up @@ -1332,23 +1326,6 @@ export class AlloV2 implements Allo {
}
}

export function serializeProject(project: ProjectWithMerkleProof) {
return utils.defaultAbiCoder.encode(
["uint256", "address", "uint256", "bytes32[]"],
[
project.index,
project.recipientId,
project.amount,
project.merkleProof.map(utils.formatBytes32String),
]
);
}

export function serializeProjects(projects: ProjectWithMerkleProof[]): Hex {
const serializedProjects = projects.map(serializeProject);
return utils.defaultAbiCoder.encode(["bytes[]"], [serializedProjects]) as Hex;
}

export type ProjectWithMerkleProof = {
index: number;
recipientId: string;
Expand Down

0 comments on commit 7a5f45c

Please sign in to comment.