Skip to content

forge-multisig — add test verifying get_committed_amount() increments on approve and decrements on execute and cancel #341

@Austinaminu2

Description

@Austinaminu2

Summary

get_committed_amount() tracks tokens promised to approved proposals. There are no tests verifying this counter increments when approval threshold is reached, decrements on execution, and decrements on cancellation.

Tasks

  • Create a proposal for 500 tokens — assert get_committed_amount(token) == 0 (threshold not reached)
  • Second owner approves — threshold reached — assert get_committed_amount(token) == 500
  • Create a second proposal for 300 tokens and approve — assert get_committed_amount(token) == 800
  • Execute first proposal — assert get_committed_amount(token) == 300
  • Cancel second proposal — assert get_committed_amount(token) == 0
  • Verify get_committed_amount() for a token with no proposals returns 0

Labels: testing, forge-multisig

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions