From 7a5f45cf232aeba60fe3b30645a845eb70136ebc Mon Sep 17 00:00:00 2001 From: eagle Date: Wed, 15 May 2024 21:03:27 +0530 Subject: [PATCH] chore: rm console log --- packages/common/src/allo/backends/allo-v2.ts | 25 +------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/packages/common/src/allo/backends/allo-v2.ts b/packages/common/src/allo/backends/allo-v2.ts index 06a608651..995eee014 100644 --- a/packages/common/src/allo/backends/allo-v2.ts +++ b/packages/common/src/allo/backends/allo-v2.ts @@ -1217,9 +1217,6 @@ export class AlloV2 implements Allo { amount: BigInt(distribution[3].toString()), merkleProof: validMerkleProof as Address[], }); - - console.log("projectsWithMerkleProof", projectsWithMerkleProof); - }); const strategy = new DonationVotingMerkleDistributionStrategy({ @@ -1227,10 +1224,7 @@ export class AlloV2 implements Allo { poolId: poolId, }); - const txData = strategy.distribute( - recipientIds, - projectsWithMerkleProof, - ); + const txData = strategy.distribute(recipientIds, projectsWithMerkleProof); const txResult = await sendRawTransaction(this.transactionSender, { to: txData.to, @@ -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;