Skip to content

Commit e6a2f9b

Browse files
committed
build: remove ambiguity of caller-utils Address import
1 parent 54d4cc9 commit e6a2f9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/build/caller_utils_generator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ fn generate_async_function(signature: &SignatureStruct) -> Option<String> {
484484
if field.wit_type == "string" {
485485
target_param = "&str";
486486
} else {
487-
// Use hyperware_process_lib::Address instead of WitAddress
488-
target_param = "&Address";
487+
// Use a distinct alias for hyperware_process_lib::Address to avoid WIT name clashes
488+
target_param = "&ProcessAddress";
489489
}
490490
} else if field.name == "returning" {
491491
return_type = rust_type;
@@ -778,7 +778,7 @@ crate-type = ["cdylib", "lib"]
778778
// Add global imports
779779
lib_rs.push_str("pub use hyperware_process_lib::hyperapp::AppSendError;\n");
780780
lib_rs.push_str("pub use hyperware_process_lib::hyperapp::send;\n");
781-
lib_rs.push_str("pub use hyperware_process_lib::{Address, Request};\n");
781+
lib_rs.push_str("pub use hyperware_process_lib::{Address as ProcessAddress, Request};\n");
782782
lib_rs.push_str("use serde_json::json;\n\n");
783783

784784
// Add interface use statements

0 commit comments

Comments
 (0)