Skip to content

Commit

Permalink
Update sdk/program/src/instruction.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Jun 17, 2024
1 parent 9fbb759 commit 5549479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ pub struct Instruction {
pub data: Vec<u8>,
}

/// wasm-bindgen version of the Instruction struct.
/// This duplication is required until https://github.com/rustwasm/wasm-bindgen/issues/3671
/// is fixed. This must not diverge from the regular non-wasm Instruction struct.
#[cfg(target_arch = "wasm32")]
#[wasm_bindgen]
pub struct Instruction {
Expand Down

0 comments on commit 5549479

Please sign in to comment.