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

replace try_to_vec with try_to_vec_with_schema #184

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Levi0804
Copy link

@Levi0804 Levi0804 commented Feb 1, 2025

Problem

In borsh v1.5.5 the try_to_vec method is no longer provided by BorshSerialize. Instead we can use try_to_vec_with_schema by deriving BorshSchema on the struct.

Summary of Changes

  • Replaced try_to_vec with try_to_vec_with_schema
  • Added#[derive(BorshSchema)] on NewAccount struct

Copy link

vercel bot commented Feb 1, 2025

@Levi0804 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant