Skip to content

[SC-73] multisig-transfer's cancel/reject need state-transition guard tests #1344

Description

@yusuftomilola

Overview

cancel_transfer_request and reject_transfer_request (contracts/multisig-transfer/src/lib.rs) — worth tests confirming a request can't be cancelled or rejected after it's already been executed, and can't be double-rejected or double-cancelled.

Tasks

  • Add a test attempting to cancel an already-execute_transfer'd request (should fail).
  • Add a test attempting to reject an already-approved-and-executed request (should fail).
  • Add a test double-cancelling or double-rejecting the same request.

Acceptance Criteria

  • Post-execution cancel/reject, and double-cancel/double-reject, are all explicitly rejected and tested.

Notes for Contributors

Requires Rust + Soroban. Workspace: contracts/ (soroban-sdk 23, members: assetsup, contrib, multisig-wallet, multisig-transfer, asset-maintenance). Run cargo test --all, cargo fmt --all -- --check, and cargo clippy --all-targets --all-features -- -D warnings before opening a PR — CI enforces all three. Comment below to be assigned.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    contracttestingTests, QA, and quality assurance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions