Skip to content

Commit

Permalink
Implement approveTally methods
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Jan 9, 2024
1 parent 15ceb20 commit 0a127b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/context/proposalTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ const ProposalTransactionProvider: React.FC<Props> = ({children}) => {
* Estimations *
*************************************************/
const estimateVoteOrApprovalFees = useCallback(async () => {
if (isGaslessVotingPluginClient && voteParams) {
return pluginClient?.estimation.approve(voteParams.proposalId);
if (isGaslessVotingPluginClient && approvalParams) {
return pluginClient?.estimation.approveTally(

Check failure on line 208 in src/context/proposalTransaction.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

Property 'approveTally' does not exist on type 'IGaslessVotingClientEstimation'.
approvalParams.proposalId,
approvalParams.tryExecution
);
}

if (isTokenVotingPluginClient && voteParams && voteTokenAddress) {
Expand Down Expand Up @@ -525,8 +528,9 @@ const ProposalTransactionProvider: React.FC<Props> = ({children}) => {
async (params: ApproveMultisigProposalParams) => {
if (!isGaslessVotingPluginClient) return;

const approveSteps = await pluginClient?.methods.approve(
params.proposalId
const approveSteps = await pluginClient?.methods.approveTally(
params.proposalId,
params.tryExecution
);

if (!approveSteps) {
Expand Down

0 comments on commit 0a127b4

Please sign in to comment.