Skip to content

Conversation

@s18721324824
Copy link

Problem:

asBytes() is not a pub func so you cannot use it on the return value of the InstructionData() cpi helper.

Summary of changes:

change packed struct fn asBytes to pub fn asBytes.

Copy link
Owner

@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.

Thanks for your contribution! I only tested these locally, which explains the oversight

@joncinque joncinque merged commit 60aced6 into joncinque:main Sep 2, 2025
6 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