From 7379006b0b4d8d2fb32aaf609836d680093b23d6 Mon Sep 17 00:00:00 2001 From: Daksh <41485688+Daksh14@users.noreply.github.com> Date: Wed, 4 Sep 2024 08:40:24 -0400 Subject: [PATCH] wallet-core: Add `ffi` module back --- wallet-core/src/ffi.rs | 3 +-- wallet-core/src/lib.rs | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wallet-core/src/ffi.rs b/wallet-core/src/ffi.rs index 28d25eb638..f6e4a24147 100644 --- a/wallet-core/src/ffi.rs +++ b/wallet-core/src/ffi.rs @@ -4,8 +4,7 @@ // // Copyright (c) DUSK NETWORK. All rights reserved. -use crate::keys::{derive_bls_pk, derive_phoenix_pk}; -use crate::RNG_SEED; +use crate::keys::{derive_bls_pk, derive_phoenix_pk, RNG_SEED}; use core::ptr; use dusk_bytes::Serializable; use execution_core::{ diff --git a/wallet-core/src/lib.rs b/wallet-core/src/lib.rs index 3ef7b2e351..df540b7b90 100644 --- a/wallet-core/src/lib.rs +++ b/wallet-core/src/lib.rs @@ -17,6 +17,9 @@ static ALLOC: dlmalloc::GlobalDlmalloc = dlmalloc::GlobalDlmalloc; extern crate alloc; +#[cfg(target_family = "wasm")] +mod ffi; + pub mod input; pub mod keys; pub mod transaction;