Skip to content

feat(revenue-pool): replace string panics with RevenuePoolError contract error - #460

Merged
greatest0fallt1me merged 2 commits into
CalloraOrg:mainfrom
omosvico:feat/revenue-pool-contracterror
Jun 26, 2026
Merged

feat(revenue-pool): replace string panics with RevenuePoolError contract error#460
greatest0fallt1me merged 2 commits into
CalloraOrg:mainfrom
omosvico:feat/revenue-pool-contracterror

Conversation

@omosvico

Copy link
Copy Markdown
Contributor

Add RevenuePoolError enum with 21 typed variants (contracterror, repr(u32)). Replace all panic!() and .expect() calls with env.panic_with_error(RevenuePoolError::). Add missing PAUSED_KEY constant. Remove obsolete ERR_ string constants. Fix test.rs broken duplicate section. Convert should_panic tests to try_* + is_err(). Run cargo fmt across workspace.

closes: #423

…acterror (CalloraOrg#423)

Add RevenuePoolError enum with 21 typed variants (contracterror, repr(u32)). Replace all panic!() and .expect() calls with env.panic_with_error(RevenuePoolError::*). Add missing PAUSED_KEY constant. Remove obsolete ERR_* string constants. Fix test.rs broken duplicate section. Convert should_panic tests to try_* + is_err(). Run cargo fmt across workspace.
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

@greatest0fallt1me
greatest0fallt1me merged commit a02a26e into CalloraOrg:main Jun 26, 2026
1 of 3 checks passed
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

RevenuePoolError typed errors — merged 👍 reconciled onto current main where it overlapped already-merged error work.

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.

ContractError enum for revenue_pool replacing string panics in distribute paths

2 participants