File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aggregation_mode/batcher/src/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl BatcherServer {
6464 } ;
6565
6666 // Check that the address is a valid ethereum address
67- if ! alloy:: primitives:: Address :: from_str ( address_raw. trim ( ) ) . is_ok ( ) {
67+ if alloy:: primitives:: Address :: from_str ( address_raw. trim ( ) ) . is_err ( ) {
6868 return HttpResponse :: BadRequest ( )
6969 . json ( AppResponse :: new_unsucessfull ( "Invalid address" , 400 ) ) ;
7070 }
@@ -217,7 +217,7 @@ impl BatcherServer {
217217
218218 let state = state. get_ref ( ) ;
219219
220- if ! alloy:: primitives:: Address :: from_str ( & params. address . clone ( ) . trim ( ) ) . is_ok ( ) {
220+ if alloy:: primitives:: Address :: from_str ( params. address . clone ( ) . trim ( ) ) . is_err ( ) {
221221 return HttpResponse :: BadRequest ( )
222222 . json ( AppResponse :: new_unsucessfull ( "Invalid address" , 400 ) ) ;
223223 }
You can’t perform that action at this time.
0 commit comments