File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ async fn get_file_size(client: &ClientWithMiddleware, url: &str) -> eyre::Result
199199
200200/// Check the hash of the data.
201201fn verify_data_hash ( expected_data_hash : B256 , data : & [ u8 ] ) -> eyre:: Result < ( ) > {
202- let hash = B256 :: try_from ( Sha256 :: digest ( data) . as_slice ( ) ) ? ;
202+ let hash = B256 :: from_slice ( Sha256 :: digest ( data) . as_ref ( ) ) ;
203203 if hash != expected_data_hash {
204204 bail ! ( "corrupted data, expected data to hash to {expected_data_hash}, got {hash}." )
205205 }
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ fn main() {
1010 use rollup_node:: { ScrollRollupNode , ScrollRollupNodeConfig } ;
1111 use tracing:: info;
1212
13+ // set default log level to info if RUST_LOG is not set
14+ if std:: env:: var ( "RUST_LOG" ) . is_err ( ) {
15+ std:: env:: set_var ( "RUST_LOG" , "info" ) ;
16+ }
1317 // enable tokio-console subscriber
1418 console_subscriber:: init ( ) ;
1519
You can’t perform that action at this time.
0 commit comments