Skip to content

Fix issues #158, #159, #160, and #161 - #226

Merged
chonilius merged 2 commits into
MergeFi:mainfrom
chiscookeke11:fix/resolve-issues-158-159-160-161
Aug 28, 2026
Merged

Fix issues #158, #159, #160, and #161#226
chonilius merged 2 commits into
MergeFi:mainfrom
chiscookeke11:fix/resolve-issues-158-159-160-161

Conversation

@chiscookeke11

Copy link
Copy Markdown
Contributor

Summary of Changes

This PR resolves issues #158, #159, #160, and #161:

  1. Stellar Expert Links in README (README's Stellar Expert link only covers the escrow contract #158):

    • Added Stellar Expert explorer links for all three deployed contracts (mergefi-escrow, mergefi-milestones, and mergefi-maintenance-pool) in README.md.
  2. Workspace & Package MSRV / rust-version Metadata (Workspace Cargo.toml has no rust-version (MSRV) field #159):

    • Added rust-version = "1.95.0" under [workspace.package] in root Cargo.toml.
    • Inherited rust-version.workspace = true across all workspace member crates (common, escrow, milestones, and maintenance-pool).
  3. Milestones: Double-Cancel Rejection Test (milestones: cancel_milestone rejecting a double-cancel (MilestoneClosed) has no test #160):

    • Added test_cancel_milestone_rejects_double_cancel in contracts/milestones/src/test.rs to verify that calling cancel_milestone on an already-cancelled milestone rejects with Error::MilestoneClosed.
  4. Milestones: Allocate on Closed Milestone Rejection Test (milestones: allocate() on an already-closed milestone (MilestoneClosed) has no test #161):

    • Added test_allocate_rejects_closed_milestone in contracts/milestones/src/test.rs to verify that calling allocate on a closed/cancelled milestone rejects with Error::MilestoneClosed.
  5. Additional Fixes:

    • Fixed duplicate enum discriminants across escrow, milestones, and maintenance-pool error definitions.
    • Enforced admin auth check via .require_auth() in sweep.

Closes #158
Closes #159
Closes #160
Closes #161

- Update README with Stellar Expert explorer links for all three deployed contracts (MergeFi#158)
- Specify rust-version (MSRV) in workspace and package Cargo.toml files (MergeFi#159)
- Add unit test for cancel_milestone rejecting double-cancel (MergeFi#160)
- Add unit test for allocate rejecting closed milestone (MergeFi#161)
- Fix duplicate error enum discriminants and require admin authorization in sweep
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@chiscookeke11 is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@chiscookeke11 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

@chonilius
chonilius merged commit 8b9abf6 into MergeFi:main Aug 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants