diff --git a/sdk/program/src/message/legacy.rs b/sdk/program/src/message/legacy.rs index bd9b0b7390ba9c..59a8c673f7867d 100644 --- a/sdk/program/src/message/legacy.rs +++ b/sdk/program/src/message/legacy.rs @@ -145,6 +145,9 @@ pub struct Message { pub instructions: Vec, } +/// wasm-bindgen version of the Message 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 Message struct. #[cfg(target_arch = "wasm32")] #[wasm_bindgen] #[cfg_attr( diff --git a/sdk/program/src/pubkey.rs b/sdk/program/src/pubkey.rs index 0ce8421dfc33c3..7ac04629bf1b87 100644 --- a/sdk/program/src/pubkey.rs +++ b/sdk/program/src/pubkey.rs @@ -56,10 +56,6 @@ impl From for PubkeyError { } } -/// wasm-bindgen version of the Pubkey 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 Pubkey struct. -/// /// The address of a [Solana account][acc]. /// /// Some account addresses are [ed25519] public keys, with corresponding secret diff --git a/sdk/src/signer/keypair.rs b/sdk/src/signer/keypair.rs index 45a34c7ebf8664..9e6088c1b5444f 100644 --- a/sdk/src/signer/keypair.rs +++ b/sdk/src/signer/keypair.rs @@ -19,10 +19,7 @@ use { path::Path, }, }; -/// wasm-bindgen version of the Keypair 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 Keypair struct. -/// + /// A vanilla Ed25519 key pair #[cfg_attr(target_arch = "wasm32", wasm_bindgen)] #[derive(Debug)] diff --git a/sdk/src/transaction/mod.rs b/sdk/src/transaction/mod.rs index 4720f278354ed0..47e4ae95cbfdb5 100644 --- a/sdk/src/transaction/mod.rs +++ b/sdk/src/transaction/mod.rs @@ -192,6 +192,9 @@ pub struct Transaction { pub message: Message, } +/// wasm-bindgen version of the Transaction 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 Transaction struct. #[cfg(target_arch = "wasm32")] #[wasm_bindgen] #[cfg_attr(