Skip to content

Commit

Permalink
fix wasm imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 27, 2024
1 parent aaf66d4 commit 350bd39
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions wallet/bip32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ mod prefix;
mod result;
pub mod types;

pub mod wasm {
//! WASM bindings for the `bip32` module.
pub use crate::mnemonic::{Language, Mnemonic, WordCount};
}

pub use address_type::AddressType;
pub use attrs::ExtendedKeyAttrs;
pub use child_number::ChildNumber;
Expand Down
2 changes: 1 addition & 1 deletion wallet/keys/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pub use crate::publickey::*;
pub use crate::secret::*;
pub use crate::types::*;
pub use crate::xprv::*;
pub use crate::xpub::*;
pub use crate::xpub::*;
6 changes: 4 additions & 2 deletions wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ cfg_if::cfg_if! {
}

pub use kaspa_consensus_wasm::*;
pub use kaspa_wallet_keys::prelude::*;
pub use kaspa_wallet_core::wasm::*;
pub use kaspa_wallet_keys::prelude::*;
pub use kaspa_bip32::wasm::*;

} else if #[cfg(feature = "wasm32-core")] {

Expand Down Expand Up @@ -193,6 +194,7 @@ cfg_if::cfg_if! {
pub use kaspa_consensus_wasm::*;
pub use kaspa_wallet_keys::prelude::*;
pub use kaspa_wallet_core::wasm::*;
pub use kaspa_bip32::wasm::*;

} else if #[cfg(feature = "wasm32-rpc")] {

Expand All @@ -208,8 +210,8 @@ cfg_if::cfg_if! {

pub use kaspa_addresses::{Address, Version as AddressVersion};
pub use kaspa_wallet_keys::prelude::*;
pub use kaspa_bip32::*;
pub use kaspa_wasm_core::types::*;
pub use kaspa_bip32::wasm::*;

}
}

0 comments on commit 350bd39

Please sign in to comment.