Skip to content

test(escrow): assert contribute rejects with AlreadyRefunded on refunded escrow (#174) - #181

Open
ghzhost wants to merge 1 commit into
MergeFi:mainfrom
ghzhost:test/escrow-contribute-already-refunded-174
Open

test(escrow): assert contribute rejects with AlreadyRefunded on refunded escrow (#174)#181
ghzhost wants to merge 1 commit into
MergeFi:mainfrom
ghzhost:test/escrow-contribute-already-refunded-174

Conversation

@ghzhost

@ghzhost ghzhost commented Aug 21, 2026

Copy link
Copy Markdown

Closes #174

Summary

Adds the missing unit test test_contribute_rejects_after_already_refunded in contracts/escrow/src/test.rs mirroring test_contribute_rejects_after_already_paid.

Changes

  • Funds an escrow with client.fund(...).
  • Triggers a refund via client.refund(...) transition to EscrowStatus::Refunded.
  • Attempts a top-up contribution via client.try_contribute(...) and asserts Err(Ok(Error::AlreadyRefunded)) is returned.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

escrow::contribute() rejecting a call after the escrow has been refunded (AlreadyRefunded) has no test

1 participant