Skip to content

test: add test verifying proposal cancel refunds tokens to proposer - #292

Open
Adedayo-Data wants to merge 1 commit into
Parashield-Protocol:mainfrom
Adedayo-Data:task-3-governance-dao-cancel-refund-test
Open

test: add test verifying proposal cancel refunds tokens to proposer#292
Adedayo-Data wants to merge 1 commit into
Parashield-Protocol:mainfrom
Adedayo-Data:task-3-governance-dao-cancel-refund-test

Conversation

@Adedayo-Data

Copy link
Copy Markdown

Description

This PR adds test coverage verifying that canceling a proposal successfully refunds the proposer's locked deposit.

Changes

  • Added test_cancel_refunds_deposit_to_proposer in contracts/governance-dao/src/test.rs.
  • The test verifies:
    1. Proposer's token balance decreases by proposal_threshold when the proposal is created.
    2. Proposer's token balance increases back to its original state when the proposal is canceled.
  • Restored test_proposal_expires_after_voting_period compilation with the required arguments.

closes #209

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Adedayo-Data Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

governance-dao: no test for cancel proposal refunding tokens to proposer

1 participant