Skip to content

fix(escrow): replace panicking unwrap in refund's contribution loop - #211

Merged
chonilius merged 1 commit into
MergeFi:mainfrom
CelestinaBeing:feat/issues-101-129-131-132
Aug 28, 2026
Merged

fix(escrow): replace panicking unwrap in refund's contribution loop#211
chonilius merged 1 commit into
MergeFi:mainfrom
CelestinaBeing:feat/issues-101-129-131-132

Conversation

@CelestinaBeing

Copy link
Copy Markdown
Contributor

Summary

Closes #101
Closes #131
Closes #129
Closes #132

refund() looped over contributor_count and called .unwrap() on each
Contribution read. A single missing/corrupted storage entry panicked
the whole transaction (a host trap) instead of surfacing a typed
error, with no path for the caller to detect or recover from it.
Switched to .ok_or(Error::ContributionNotFound)? so the failure is a
normal contract error like every other lookup in this module.

Closes MergeFi#101
Closes MergeFi#131
Closes MergeFi#129
Closes MergeFi#132
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@CelestinaBeing 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 27, 2026

Copy link
Copy Markdown

@CelestinaBeing 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 1398880 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