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

move program::wasm::instructions to instruction crate #3874

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

kevinheavey
Copy link

@kevinheavey kevinheavey commented Dec 2, 2024

Problem

solana_program::wasm::instructions imposes a solana-program dep on solana-transaction (which is getting pulled out in #3634. The contents of instructions.rs are a legacy solution because wasm_bindgen now supports Vec, but until we make a breaking change, solana-transaction requires instructions.rs

Summary of Changes

  • Move to the solana-instruction crate and re-export with deprecation

@kevinheavey kevinheavey marked this pull request as ready for review December 3, 2024 00:47
@kevinheavey kevinheavey requested a review from joncinque December 3, 2024 01:08
Copy link

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

Just a tiny nit, looks good otherwise! I tried to see if we could do this more cleverly by changing the Transaction wasm constructor to take something like Into<Vec<Instruction>> but wasm-bindgen doesn't support generics. So I think your approach is the best option.

sdk/instruction/src/lib.rs Outdated Show resolved Hide resolved
@joncinque joncinque added the automerge automerge Merge this Pull Request automatically once CI passes label Dec 3, 2024
@mergify mergify bot merged commit 81a84cd into anza-xyz:master Dec 3, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge Merge this Pull Request automatically once CI passes need:merge-assist
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants