File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,7 @@ impl From<bitcoin::Network> for Network {
346346    } 
347347} 
348348
349- uniffi:: custom_type!( Txid ,  String ) ; 
350- impl_string_custom_typedef ! ( Txid ) ; 
351- uniffi:: custom_type!( BlockHash ,  String ) ; 
352- impl_string_custom_typedef ! ( BlockHash ) ; 
349+ define_custom_string_type ! ( Txid ) ; 
350+ define_custom_string_type ! ( BlockHash ) ; 
353351
354352uniffi:: setup_scaffolding!( "bitcoin" ) ; 
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ macro_rules! impl_from_ffi_type {
1818    } ; 
1919} 
2020
21- macro_rules!  impl_string_custom_typedef  { 
21+ macro_rules!  define_custom_string_type  { 
2222    ( $ffi_type: ident)  => { 
23+         uniffi:: custom_type!( $ffi_type,  String ) ; 
24+ 
2325        impl  UniffiCustomTypeConverter  for  $ffi_type { 
2426            type  Builtin  = String ; 
2527            fn  into_custom( val:  Self :: Builtin )  -> uniffi:: Result <Self > { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments