Skip to content

fix: refund basket tokens and cover messaging flows - #690

Merged
JSE19 merged 5 commits into
JSE-ORG:mainfrom
Anthony-19:feat/approve_refund
Jul 27, 2026
Merged

fix: refund basket tokens and cover messaging flows#690
JSE19 merged 5 commits into
JSE-ORG:mainfrom
Anthony-19:feat/approve_refund

Conversation

@Anthony-19

Copy link
Copy Markdown
Contributor

Summary

  • Return all basket escrow tokens to the buyer when a refund is approved.
  • Add fund_basket_escrow edge-case coverage for unauthorized callers, partial funding rollback, prior fund_escrow funding, and surplus buyer balances.
  • Add buyer/seller messaging coverage and enforce authenticated participant-only, non-empty, bounded messages.
  • Complete and numerically order the error-code reference.

Testing

  • cargo +1.94.0-x86_64-pc-windows-msvc fmt --all -- --check
  • git diff --check

cargo test --lib was attempted but could not run in this environment because the MSVC linker (link.exe) is unavailable. The default stable Rust toolchain also fails during its local update due to existing rustup file conflicts.

Closes #651
Closes #652
Closes #653
Closes #654

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Anthony-19 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

- Pass env.clone() to setup_contract so the original env remains
  free to move into Fixture (fixes E0597/E0505)
- Reformat long try_post_message assert_eq! to satisfy cargo fmt
- Pass env.clone() to setup_contract so the original env remains
  free to move into Fixture (fixes E0597/E0505)
- Reformat long try_post_message assert_eq! to satisfy cargo fmt
@JSE19
JSE19 merged commit 7148500 into JSE-ORG:main Jul 27, 2026
10 checks passed
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