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 @@ -330,9 +330,7 @@ impl From<bitcoin::Network> for Network {
330330    } 
331331} 
332332
333- uniffi:: custom_type!( Txid ,  String ) ; 
334- impl_string_custom_typedef ! ( Txid ) ; 
335- uniffi:: custom_type!( BlockHash ,  String ) ; 
336- impl_string_custom_typedef ! ( BlockHash ) ; 
333+ define_custom_string_type ! ( Txid ) ; 
334+ define_custom_string_type ! ( BlockHash ) ; 
337335
338336uniffi:: 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