@@ -154,16 +154,16 @@ macro_rules! impl_web {
154154 let provider_lock = PARAMETER_PROVIDER . lock( ) ;
155155 match provider_lock {
156156 Ok ( provider) => {
157- // use web_sys::console;
157+ use web_sys:: console;
158158
159159 let formatted_string = format!( "{}: Loading Bytes" , stringify!( $name) ) ;
160- // println!("{}: Loading Bytes", stringify!($name));
161- // console::log_1(&formatted_string.into());
160+ println!( "{}: Loading Bytes" , stringify!( $name) ) ;
161+ console:: log_1( & formatted_string. into( ) ) ;
162162 let bytes = provider. get( stringify!( $name) ) ;
163163 assert!( bytes. is_some( ) , "{} should be defined in the Parameter Provider" , stringify!( $name) ) ;
164164 let unwrapped_bytes = bytes. unwrap( ) . clone( ) ;
165165 let formatted_string2 = format!( "{}: Loaded Bytes Sucessfully" , stringify!( $name) ) ;
166- // console::log_1(&formatted_string2.into());
166+ console:: log_1( & formatted_string2. into( ) ) ;
167167 Ok ( unwrapped_bytes)
168168 }
169169 Err ( _) => {
@@ -260,22 +260,22 @@ macro_rules! insert_key {
260260 ( $map: ident, $string: tt, $type: ident<$network: ident>, ( $name: tt, $circuit_key: expr) ) => { {
261261 // Load the circuit key bytes.
262262 let formatted_string = format!( "{}: Loading Circuit Keys" , stringify!( $string) ) ;
263- // web_sys::// console::log_1(&formatted_string.into());
263+ web_sys:: console:: log_1( & formatted_string. into( ) ) ;
264264 let key_bytes: Vec <u8 > = $circuit_key. expect( & format!( "Failed to load {} bytes" , $string) ) ;
265265 let formatted_string2 = format!( "{}: Loaded Circuit Keys: {} Bytes" , stringify!( $string) , key_bytes. len( ) ) ;
266- // web_sys::// console::log_1(&formatted_string2.into());
266+ web_sys:: console:: log_1( & formatted_string2. into( ) ) ;
267267 // Recover the circuit key.
268268 let key = $type:: <$network>:: from_bytes_le( & key_bytes[ 2 ..] ) . expect( & format!( "Failed to recover {}" , $string) ) ;
269269 let formatted_string3 = format!( "{}: Recovered Circuit Keys" , stringify!( $string) ) ;
270- // web_sys::// console::log_1(&formatted_string3.into());
270+ web_sys:: console:: log_1( & formatted_string3. into( ) ) ;
271271 // Insert the circuit key.
272272 let thing = std:: sync:: Arc :: new( key) ;
273273 let formatted_string10 = format!( "{}: ARC Made" , stringify!( $string) ) ;
274- // web_sys::// console::log_1(&formatted_string10.into());
274+ web_sys:: console:: log_1( & formatted_string10. into( ) ) ;
275275
276276 $map. insert( $name. to_string( ) , thing) ;
277277 let formatted_string4 = format!( "{}: Inserted Circuit Key" , stringify!( $string) ) ;
278- // web_sys::// console::log_1(&formatted_string4.into());
278+ web_sys:: console:: log_1( & formatted_string4. into( ) ) ;
279279 } } ;
280280}
281281
0 commit comments