Skip to content

Conversation

@joncinque
Copy link
Owner

Problem

Constructing instruction data requires using a serialization library
such as bincode or borsh, but it's much simpler to create an instance of
the instruction and just reinterpret those bytes (assuming the type is a
properly packed struct).

Summary of changes

Add a helper for creating a type used for instruction data.

#### Problem

Constructing instruction data requires using a serialization library
such as bincode or borsh, but it's much simpler to create an instance of
the instruction and just reinterpret those bytes (assuming the type is a
properly packed struct).

#### Summary of changes

Add a helper for creating a type used for instruction data.
@joncinque joncinque enabled auto-merge (squash) November 2, 2024 00:12
@joncinque joncinque disabled auto-merge November 2, 2024 00:40
@joncinque joncinque merged commit 87d40df into main Nov 2, 2024
12 checks passed
@joncinque joncinque deleted the ixdata branch November 2, 2024 00: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