Skip to content

refactor: extract state guard checks into require_state macro#112

Open
HushLuxe wants to merge 1 commit into
JSE-ORG:mainfrom
HushLuxe:fix/83-extract-state-guard-macro
Open

refactor: extract state guard checks into require_state macro#112
HushLuxe wants to merge 1 commit into
JSE-ORG:mainfrom
HushLuxe:fix/83-extract-state-guard-macro

Conversation

@HushLuxe
Copy link
Copy Markdown

Replace duplicate assert!(escrow.state == EscrowState::X) patterns with a reusable require_state! macro that auto-generates descriptive error messages.

Closes #83

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

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

@JSE19
Copy link
Copy Markdown
Contributor

JSE19 commented May 27, 2026

please resolve conflict nd try again

@JSE19
Copy link
Copy Markdown
Contributor

JSE19 commented May 27, 2026

please resolve conflict and try again

Replace duplicate assert!(escrow.state == EscrowState::X) patterns with a
reusable require_state! macro that auto-generates descriptive error messages.
Also restore missing state field on EscrowData (lost during upstream merge)
and remove duplicate ContractError enum.

Closes JSE-ORG#83
@HushLuxe HushLuxe force-pushed the fix/83-extract-state-guard-macro branch from b9892e1 to a183f7c Compare May 27, 2026 12:49
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.

Extract state guard checks into a require_state macro

2 participants