File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff 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- "# ;
Original file line number Diff line number Diff 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 ) ) ]
4444pub 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 > ,
You can’t perform that action at this time.
0 commit comments