@@ -113,7 +113,7 @@ def send_struct_def_field(typename, keyname):
113113 pass
114114
115115 response = app_client .response ()
116- assert response .status == StatusWord .OK , \
116+ assert response .status == StatusWord .SWO_SUCCESS , \
117117 f"Error sending field def { keyname } of type { typename } : { response .status } "
118118
119119 return (typename , type_enum , typesize , array_lvls )
@@ -196,7 +196,7 @@ def send_all_filtering_tokens(tokens: list[dict]):
196196 bytes .fromhex (token ["addr" ][2 :]),
197197 token ["decimals" ],
198198 token ["chain_id" ])
199- assert response .status == StatusWord .OK , \
199+ assert response .status == StatusWord .SWO_SUCCESS , \
200200 f"Error sending token metadata for { token ['ticker' ]} : { response .status } "
201201
202202
@@ -284,7 +284,7 @@ def send_struct_impl_field(value, field):
284284 callback ()
285285
286286 response = app_client .response ()
287- assert response .status == StatusWord .OK , \
287+ assert response .status == StatusWord .SWO_SUCCESS , \
288288 f"Error sending field { field ['name' ]} of type { field ['type' ]} : { response .status } "
289289
290290
@@ -297,14 +297,14 @@ def evaluate_field(structs, data, field, lvls_left, new_level=True):
297297 with app_client .eip712_send_struct_impl_array (len (data )):
298298 pass
299299 response = app_client .response ()
300- assert response .status == StatusWord .OK , \
300+ assert response .status == StatusWord .SWO_SUCCESS , \
301301 f"Error sending array { field ['name' ]} of type { field ['type' ]} : { response .status } "
302302 if len (data ) == 0 :
303303 for path in filtering_paths .keys ():
304304 dpath = "." .join (current_path ) + ".[]"
305305 if path .startswith (dpath ):
306306 response = app_client .eip712_filtering_discarded_path (path )
307- assert response .status == StatusWord .OK , \
307+ assert response .status == StatusWord .SWO_SUCCESS , \
308308 f"Error sending discarded path { path } : { response .status } "
309309 send_filter (path , True )
310310 idx = 0
@@ -355,7 +355,7 @@ def send_filtering_message_info(display_name: str, filters_count: int):
355355 with app_client .eip712_filtering_message_info (display_name , filters_count , sig ):
356356 pass
357357 response = app_client .response ()
358- assert response .status == StatusWord .OK , \
358+ assert response .status == StatusWord .SWO_SUCCESS , \
359359 f"Error sending filtering message info for { display_name } : { response .status } "
360360
361361
@@ -367,7 +367,7 @@ def send_filtering_amount_join_token(path: str, join_id: int, discarded: bool):
367367 with app_client .eip712_filtering_amount_join_token (join_id , sig , discarded ):
368368 pass
369369 response = app_client .response ()
370- assert response .status == StatusWord .OK , \
370+ assert response .status == StatusWord .SWO_SUCCESS , \
371371 f"Error sending filtering amount join token for { path } with token index { join_id } : { response .status } "
372372
373373
@@ -380,7 +380,7 @@ def send_filtering_amount_join_value(path: str, join_id: int, display_name: str,
380380 with app_client .eip712_filtering_amount_join_value (join_id , display_name , sig , discarded ):
381381 pass
382382 response = app_client .response ()
383- assert response .status == StatusWord .OK , \
383+ assert response .status == StatusWord .SWO_SUCCESS , \
384384 f"Error sending filtering amount join value for { path } with token index { join_id } : { response .status } "
385385
386386
@@ -392,7 +392,7 @@ def send_filtering_datetime(path: str, display_name: str, discarded: bool):
392392 with app_client .eip712_filtering_datetime (display_name , sig , discarded ):
393393 pass
394394 response = app_client .response ()
395- assert response .status == StatusWord .OK , \
395+ assert response .status == StatusWord .SWO_SUCCESS , \
396396 f"Error sending filtering datetime for { path } : { response .status } "
397397
398398
@@ -412,7 +412,7 @@ def send_filtering_trusted_name(path: str,
412412 with app_client .eip712_filtering_trusted_name (display_name , name_type , name_source , sig , discarded ):
413413 pass
414414 response = app_client .response ()
415- assert response .status == StatusWord .OK , \
415+ assert response .status == StatusWord .SWO_SUCCESS , \
416416 f"Error sending filtering trusted name for { path } : { response .status } "
417417
418418
@@ -440,7 +440,7 @@ def send_filtering_calldata_info(index: int,
440440 amount_filter_flag ,
441441 spender_filter_flag ,
442442 sig )
443- assert response .status == StatusWord .OK , \
443+ assert response .status == StatusWord .SWO_SUCCESS , \
444444 f"Error sending filtering calldata info : { response .status } "
445445
446446
@@ -450,7 +450,7 @@ def send_filtering_calldata_value(path: str, index: int, discarded: bool):
450450 to_sign .append (index )
451451 sig = CAL_COIN_META_PARTNER .sign (to_sign )
452452 response = app_client .eip712_filtering_calldata_value (index , sig , discarded )
453- assert response .status == StatusWord .OK , \
453+ assert response .status == StatusWord .SWO_SUCCESS , \
454454 f"Error sending filtering calldata value for { path } : { response .status } "
455455
456456
@@ -460,7 +460,7 @@ def send_filtering_calldata_callee(path: str, index: int, discarded: bool):
460460 to_sign .append (index )
461461 sig = CAL_COIN_META_PARTNER .sign (to_sign )
462462 response = app_client .eip712_filtering_calldata_callee (index , sig , discarded )
463- assert response .status == StatusWord .OK , \
463+ assert response .status == StatusWord .SWO_SUCCESS , \
464464 f"Error sending filtering calldata callee for { path } : { response .status } "
465465
466466
@@ -470,7 +470,7 @@ def send_filtering_calldata_chain_id(path: str, index: int, discarded: bool):
470470 to_sign .append (index )
471471 sig = CAL_COIN_META_PARTNER .sign (to_sign )
472472 response = app_client .eip712_filtering_calldata_chain_id (index , sig , discarded )
473- assert response .status == StatusWord .OK , \
473+ assert response .status == StatusWord .SWO_SUCCESS , \
474474 f"Error sending filtering calldata callee for { path } : { response .status } "
475475
476476
@@ -480,7 +480,7 @@ def send_filtering_calldata_selector(path: str, index: int, discarded: bool):
480480 to_sign .append (index )
481481 sig = CAL_COIN_META_PARTNER .sign (to_sign )
482482 response = app_client .eip712_filtering_calldata_selector (index , sig , discarded )
483- assert response .status == StatusWord .OK , \
483+ assert response .status == StatusWord .SWO_SUCCESS , \
484484 f"Error sending filtering calldata callee for { path } : { response .status } "
485485
486486
@@ -490,7 +490,7 @@ def send_filtering_calldata_amount(path: str, index: int, discarded: bool):
490490 to_sign .append (index )
491491 sig = CAL_COIN_META_PARTNER .sign (to_sign )
492492 response = app_client .eip712_filtering_calldata_amount (index , sig , discarded )
493- assert response .status == StatusWord .OK , \
493+ assert response .status == StatusWord .SWO_SUCCESS , \
494494 f"Error sending filtering calldata callee for { path } : { response .status } "
495495
496496
@@ -500,7 +500,7 @@ def send_filtering_calldata_spender(path: str, index: int, discarded: bool):
500500 to_sign .append (index )
501501 sig = CAL_COIN_META_PARTNER .sign (to_sign )
502502 response = app_client .eip712_filtering_calldata_spender (index , sig , discarded )
503- assert response .status == StatusWord .OK , \
503+ assert response .status == StatusWord .SWO_SUCCESS , \
504504 f"Error sending filtering calldata callee for { path } : { response .status } "
505505
506506
@@ -513,7 +513,7 @@ def send_filtering_raw(path: str, display_name: str, discarded: bool):
513513 with app_client .eip712_filtering_raw (display_name , sig , discarded ):
514514 pass
515515 response = app_client .response ()
516- assert response .status == StatusWord .OK , \
516+ assert response .status == StatusWord .SWO_SUCCESS , \
517517 f"Error sending filtering raw for { path } : { response .status } "
518518
519519
@@ -604,7 +604,7 @@ def process_data(aclient: EthAppClient,
604604 with app_client .eip712_send_struct_def_struct_name (key ):
605605 pass
606606 response = app_client .response ()
607- assert response .status == StatusWord .OK , \
607+ assert response .status == StatusWord .SWO_SUCCESS , \
608608 f"Error sending struct def { key } : { response .status } "
609609 for f in types [key ]:
610610 (f ["type" ], f ["enum" ], f ["typesize" ], f ["array_lvls" ]) = \
@@ -614,7 +614,7 @@ def process_data(aclient: EthAppClient,
614614 with app_client .eip712_filtering_activate ():
615615 pass
616616 response = app_client .response ()
617- assert response .status == StatusWord .OK , \
617+ assert response .status == StatusWord .SWO_SUCCESS , \
618618 f"Error activating filtering: { response .status } "
619619 prepare_filtering (data_json , filters )
620620 send_all_filtering_tokens (filtering_tokens )
@@ -626,7 +626,7 @@ def process_data(aclient: EthAppClient,
626626 with app_client .eip712_send_struct_impl_root_struct (domain_typename ):
627627 pass
628628 response = app_client .response ()
629- assert response .status == StatusWord .OK , \
629+ assert response .status == StatusWord .SWO_SUCCESS , \
630630 f"Error sending domain root struct { domain_typename } : { response .status } "
631631 send_struct_impl (types , domain , domain_typename )
632632
@@ -640,6 +640,6 @@ def process_data(aclient: EthAppClient,
640640 with app_client .eip712_send_struct_impl_root_struct (message_typename ):
641641 pass
642642 response = app_client .response ()
643- assert response .status == StatusWord .OK , \
643+ assert response .status == StatusWord .SWO_SUCCESS , \
644644 f"Error sending message root struct { message_typename } : { response .status } "
645645 send_struct_impl (types , message , message_typename )
0 commit comments