Skip to content

Use AccountView from Solana SDK #119

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

Draft
wants to merge 2 commits into
base: febo/solana-address
Choose a base branch
from

Conversation

febo
Copy link
Collaborator

@febo febo commented Apr 2, 2025

Problem

Currently, pinocchio defines its own (zero-copy) AccountInfo struct. The name clash makes it confusing to write code that interacts with both AccountInfo types from the SDK and pinocchio.

Solution

Use the new AccountView type from Solana SDK instead. While this is a breaking change since the type has a different name, it has the same characteristics of the current AccountInfo type, so there is no loss of efficiency.

@febo febo added the breaking PR contains breaking changes label Apr 2, 2025
@febo febo force-pushed the febo/solana-account-view branch from 5ab65d7 to 46dd140 Compare April 2, 2025 18:30
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.

1 participant