From 8ae33d47cc1bc6d9c6f9aaeab1f8549c5fdba99d Mon Sep 17 00:00:00 2001 From: Dummy Tester 123 Date: Wed, 17 Mar 2021 20:39:54 -0500 Subject: [PATCH 1/2] Some more updates and fixes around withdrawing and voting --- packages/proposals/src/actions/createProposal.ts | 6 +++--- packages/proposals/src/components/Proposal/Vote.tsx | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/proposals/src/actions/createProposal.ts b/packages/proposals/src/actions/createProposal.ts index a4c1167..68ddaad 100644 --- a/packages/proposals/src/actions/createProposal.ts +++ b/packages/proposals/src/actions/createProposal.ts @@ -272,7 +272,7 @@ async function getAssociatedAccountsAndInstructions( wallet.publicKey, accountRentExempt, yesVoteMint, - wallet.publicKey, + authority, holdingSigners, ); @@ -281,7 +281,7 @@ async function getAssociatedAccountsAndInstructions( wallet.publicKey, accountRentExempt, noVoteMint, - wallet.publicKey, + authority, holdingSigners, ); @@ -290,7 +290,7 @@ async function getAssociatedAccountsAndInstructions( wallet.publicKey, accountRentExempt, timelockConfig.info.governanceMint, - wallet.publicKey, + authority, holdingSigners, ); diff --git a/packages/proposals/src/components/Proposal/Vote.tsx b/packages/proposals/src/components/Proposal/Vote.tsx index 4a65b85..e5d71f9 100644 --- a/packages/proposals/src/components/Proposal/Vote.tsx +++ b/packages/proposals/src/components/Proposal/Vote.tsx @@ -41,7 +41,6 @@ export function Vote({ return eligibleToView ? (