Skip to content

program-error!: Upgrade to v2.2.2 crates#99

Merged
joncinque merged 1 commit intosolana-program:mainfrom
joncinque:prog-error
Jul 22, 2025
Merged

program-error!: Upgrade to v2.2.2 crates#99
joncinque merged 1 commit intosolana-program:mainfrom
joncinque:prog-error

Conversation

@joncinque
Copy link
Contributor

@joncinque joncinque commented Jul 21, 2025

Problem

The repo is still on v2.2.1 sdk crates, but a few versions have been updated since then. Most importantly, DecodeError and PrintProgramError were deprecated in favor of ToStr, and spl-program-error implements the old traits.

Summary of changes

Update to v2.2.2 crates, and update spl-program-error to stop implementing DecodeError and PrintProgramError in favor of ToStr.

NOTE: This is a breaking change.

@joncinque joncinque requested a review from buffalojoec July 21, 2025 16:46
#### Problem

The repo is still on v2.2.1 sdk crates, but a few versions have been
updated since then. Most importantly, `DecodeError` and
`PrintProgramError` were deprecated in favor of `ToStr`, and
`spl-program-error` implements the old traits.

#### Summary of changes

Update to v2.2.2 crates, and update spl-program-error to stop
implementing `DecodeError` and `PrintProgramError` in favor of `ToStr`.
@joncinque joncinque merged commit ec3f03f into solana-program:main Jul 22, 2025
29 checks passed
@joncinque joncinque deleted the prog-error branch July 22, 2025 09:41
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