Skip to content

Add test coverage for pay_many_multi #324

Description

@Spagero763

Context

pay_many_multi pays several splits with a token per split in one call, but it currently has zero test coverage. This moves money across multiple tokens atomically, so gaps here are the kind of thing that matters. See pay_many_multi in contracts/splitter/src/lib.rs.

Acceptance criteria

  • Tests cover: a successful mixed-token batch, a failing entry reverting the whole batch (balances unchanged), and the same validation cases as pay_many (empty ids, length mismatch, non-positive amount).

Per CONTRIBUTING.md: one concern, tests required for behaviour changes. CI gate: cargo fmt / cargo clippy --all-targets -- -D warnings / cargo test for Rust, npm run build for the sdk/app.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26help wantedExtra attention is neededrustPull requests that update rust codesecurityFunds safety and hardening

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions