From 542e4e0295199a517291f441ea3009f90791dddf Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Fri, 2 Aug 2024 00:06:07 +0400 Subject: [PATCH] fix imports in wasm target --- sdk/pubkey/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/pubkey/src/lib.rs b/sdk/pubkey/src/lib.rs index 8a447ff00c07de..e422d13fa05a7a 100644 --- a/sdk/pubkey/src/lib.rs +++ b/sdk/pubkey/src/lib.rs @@ -947,7 +947,7 @@ impl Pubkey { /// Derive a program address from seeds and a program id #[cfg(feature = "curve25519")] pub fn createProgramAddress( - seeds: Box<[JsValue]>, + seeds: std::boxed::Box<[JsValue]>, program_id: &Pubkey, ) -> Result { let seeds_vec = js_value_to_seeds_vec(&seeds)?; @@ -966,7 +966,7 @@ impl Pubkey { /// * `[PubKey, number]` - the program address and bump seed #[cfg(feature = "curve25519")] pub fn findProgramAddress( - seeds: Box<[JsValue]>, + seeds: std::boxed::Box<[JsValue]>, program_id: &Pubkey, ) -> Result { let seeds_vec = js_value_to_seeds_vec(&seeds)?;