Skip to content

Commit 7aee4a8

Browse files
authored
Fix Interaction Wasm build (#1588)
1 parent e50ac26 commit 7aee4a8

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2020-2025 IOTA Stiftung
22
// SPDX-License-Identifier: Apache-2.0
33

4+
export * as iota_client_helpers from "./iota_client_helpers";
45
export * as move_calls from "./move_calls";

bindings/wasm/iota_interaction_ts/src/asset_move_calls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use identity_iota_interaction::AssetMoveCalls;
2020
use identity_iota_interaction::MoveType;
2121
use identity_iota_interaction::ProgrammableTransactionBcs;
2222

23-
#[wasm_bindgen(module = "move_calls/asset")]
23+
#[wasm_bindgen(module = "@iota/iota-interaction-ts/move_calls/asset")]
2424
extern "C" {
2525
#[wasm_bindgen(js_name = "create", catch)]
2626
pub(crate) async fn new_asset(

bindings/wasm/iota_interaction_ts/src/bindings/wasm_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ impl WasmSharedObjectRef {
366366
}
367367
}
368368

369-
#[wasm_bindgen(module = "/lib/iota_client_helpers.ts")]
369+
#[wasm_bindgen(module = "@iota/iota-interaction-ts/iota_client_helpers")]
370370
extern "C" {
371371
// Please note: For unclear reasons the `typescript_type` name and the `pub type` name defined
372372
// in wasm_bindgen extern "C" scopes must be equal. Otherwise, the JS constructor will not be

bindings/wasm/iota_interaction_ts/src/migration_move_calls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::bindings::WasmSharedObjectRef;
1515
use crate::error::TsSdkError;
1616
use crate::error::WasmError;
1717

18-
#[wasm_bindgen(module = "move_calls")]
18+
#[wasm_bindgen(module = "@iota/iota-interaction-ts/move_calls")]
1919
extern "C" {
2020
#[wasm_bindgen(js_name = "migrateDidOutput", catch)]
2121
async fn migrate_did_output_impl(

0 commit comments

Comments
 (0)