Skip to content

Conversation

@febo
Copy link
Collaborator

@febo febo commented Mar 27, 2025

Problem

Pinocchio currently re-implements the ProgramError type, which is essentially a copy of the same type from Solana SDK. This will make it awkward to write code that interact with both pinocchio and SDK types.

Solution

Bring the ProgramError type from solana-program-error crate. This adds a dependency to pinocchio – an "internal" dependency to a SDK crate.

Note: this needs #250 to be merged first.

@febo febo force-pushed the febo/sdk-program-error branch from 662299a to fd9e12e Compare July 3, 2025 11:29
@febo febo added the breaking PR contains breaking changes label Jul 3, 2025
@febo febo force-pushed the febo/sdk-program-error branch 2 times, most recently from fa49062 to 4100e84 Compare September 12, 2025 12:42
@febo febo changed the base branch from main to febo/toolchain-bump September 12, 2025 12:42
@febo febo marked this pull request as ready for review September 12, 2025 12:54
Copy link
Contributor

@rustopian rustopian left a comment

Choose a reason for hiding this comment

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

Straightforward, looks good

Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

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

Labels

breaking PR contains breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants