Skip to content

InstructionData: Fix asBytes() to be pub #14

Merged
joncinque merged 2 commits into
joncinque:mainfrom
sparx7783:main
Sep 2, 2025
Merged

InstructionData: Fix asBytes() to be pub #14
joncinque merged 2 commits into
joncinque:mainfrom
sparx7783:main

Conversation

@sparx7783

Copy link
Copy Markdown

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.

@joncinque joncinque left a comment

Copy link
Copy Markdown
Owner

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