Skip to content

Commit 879c14c

Browse files
committed
init
1 parent 79a43ab commit 879c14c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

crates/cli/src/meta/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,13 +1314,3 @@ mod tests {
13141314
assert!(!result);
13151315
}
13161316
}
1317-
1318-
#[cfg(target_family = "wasm")]
1319-
use wasm_bindgen::prelude::wasm_bindgen;
1320-
1321-
#[cfg(target_family = "wasm")]
1322-
#[wasm_bindgen(typescript_custom_section)]
1323-
const TS_APPEND_CONTENT: &'static str = r#"
1324-
export type Address = `0x${string}`;
1325-
export type Hex = `0x${string}`;
1326-
"#;

crates/cli/src/meta/types/dotrain/gui_state_v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct ShortenedTokenCfg {
3131
/// Network name where the token exists
3232
pub network: String,
3333
/// Token contract address
34-
#[cfg_attr(target_family = "wasm", tsify(type = "Address"))]
34+
#[cfg_attr(target_family = "wasm", tsify(type = "`0x${string}`"))]
3535
pub address: Address,
3636
}
3737
#[cfg(target_family = "wasm")]
@@ -43,7 +43,7 @@ impl_wasm_traits!(ShortenedTokenCfg);
4343
#[cfg_attr(target_family = "wasm", derive(Tsify))]
4444
pub struct DotrainGuiStateV1 {
4545
/// Hash of the original dotrain template in Metaboard
46-
#[cfg_attr(target_family = "wasm", tsify(type = "Hex"))]
46+
#[cfg_attr(target_family = "wasm", tsify(type = "`0x${string}`"))]
4747
pub dotrain_hash: B256,
4848
/// User-configured field values
4949
pub field_values: BTreeMap<String, ValueCfg>,

0 commit comments

Comments
 (0)