Skip to content

Commit

Permalink
fix apply
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Apr 30, 2024
1 parent 8a5c6ca commit 6d8e793
Show file tree
Hide file tree
Showing 3 changed files with 432 additions and 194 deletions.
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:watch": "vitest watch"
},
"dependencies": {
"@allo-team/allo-v2-sdk": "1.0.67",
"@allo-team/allo-v2-sdk": "1.0.69",
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@gitcoinco/passport-sdk-types": "^0.2.0",
Expand Down
11 changes: 5 additions & 6 deletions packages/common/src/allo/backends/allo-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ export class AlloV2 implements Allo {
poolId: BigInt(args.roundId),
});

// const answers = metadata.application.answers;
// const amountAnswer = answers.find(
// (a) => a.question === "Amount requested"
// );
const answers = metadata.application.answers;
const amountAnswer = answers.find(
(a) => a.question === "Amount requested"
);

registerRecipientTx = strategyInstance.getRegisterRecipientData({
registryAnchor: args.projectId,
recipientAddress: metadata.application.recipient,
// todo, grantAmount: BigInt((amountAnswer?.answer as string) ?? 0),
grantAmount: BigInt((amountAnswer?.answer as string) ?? 0),
metadata: {
protocol: 1n,
pointer: ipfsResult.value,
Expand Down Expand Up @@ -700,7 +700,6 @@ export class AlloV2 implements Allo {
}
> {
return new AlloOperation(async ({ emit }) => {

// Note: This is for both Direct and Quadratic Funding Grants
const strategyInstance = new DonationVotingMerkleDistributionStrategy({
chain: this.chainId,
Expand Down
Loading

0 comments on commit 6d8e793

Please sign in to comment.