Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program: drop spl-program-error for shank #23

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

buffalojoec
Copy link
Contributor

Shank can't generate custom program errors (even though right now this program has only one) if the enum is using #[spl_program_error].

Drop the macro and implement the necessary traits by hand!

@buffalojoec buffalojoec requested a review from febo January 9, 2025 05:30
Copy link

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@buffalojoec buffalojoec merged commit 62c6136 into main Jan 14, 2025
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
Development

Successfully merging this pull request may close these issues.

2 participants