Skip to content

Commit

Permalink
fix imports in wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Aug 1, 2024
1 parent 2dc29d6 commit 542e4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/pubkey/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pubkey, JsValue> {
let seeds_vec = js_value_to_seeds_vec(&seeds)?;
Expand All @@ -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<JsValue, JsValue> {
let seeds_vec = js_value_to_seeds_vec(&seeds)?;
Expand Down

0 comments on commit 542e4e0

Please sign in to comment.