@@ -355,7 +355,7 @@ def send_filtering_message_info(display_name: str, filters_count: int):
355355 to_sign .append (filters_count )
356356 to_sign += display_name .encode ()
357357
358- sig = CAL_COIN_META_PARTNER .sign (to_sign )
358+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
359359 with app_client .eip712_filtering_message_info (display_name , filters_count , sig ):
360360 pass
361361 response = app_client .response ()
@@ -368,7 +368,7 @@ def send_filtering_amount_join_token(path: str, join_id: int, discarded: bool):
368368 to_sign = start_signature_payload (sig_ctx , 11 )
369369 to_sign += path .encode ()
370370 to_sign .append (join_id )
371- sig = CAL_COIN_META_PARTNER .sign (to_sign )
371+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
372372 with app_client .eip712_filtering_amount_join_token (join_id , sig , discarded ):
373373 pass
374374 response = app_client .response ()
@@ -382,7 +382,7 @@ def send_filtering_amount_join_value(path: str, join_id: int, display_name: str,
382382 to_sign += path .encode ()
383383 to_sign += display_name .encode ()
384384 to_sign .append (join_id )
385- sig = CAL_COIN_META_PARTNER .sign (to_sign )
385+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
386386 with app_client .eip712_filtering_amount_join_value (join_id , display_name , sig , discarded ):
387387 pass
388388 response = app_client .response ()
@@ -395,7 +395,7 @@ def send_filtering_datetime(path: str, display_name: str, discarded: bool):
395395 to_sign = start_signature_payload (sig_ctx , 33 )
396396 to_sign += path .encode ()
397397 to_sign += display_name .encode ()
398- sig = CAL_COIN_META_PARTNER .sign (to_sign )
398+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
399399 with app_client .eip712_filtering_datetime (display_name , sig , discarded ):
400400 pass
401401 response = app_client .response ()
@@ -416,7 +416,7 @@ def send_filtering_trusted_name(path: str,
416416 to_sign .append (t )
417417 for s in name_source :
418418 to_sign .append (s )
419- sig = CAL_COIN_META_PARTNER .sign (to_sign )
419+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
420420 with app_client .eip712_filtering_trusted_name (display_name , name_type , name_source , sig , discarded ):
421421 pass
422422 response = app_client .response ()
@@ -440,7 +440,7 @@ def send_filtering_calldata_info(index: int,
440440 to_sign .append (selector_filter_flag )
441441 to_sign .append (amount_filter_flag )
442442 to_sign .append (int (spender_filter_flag ))
443- sig = CAL_COIN_META_PARTNER .sign (to_sign )
443+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
444444 response = app_client .eip712_filtering_calldata_info (index ,
445445 value_filter_flag ,
446446 callee_filter_flag ,
@@ -457,7 +457,7 @@ def send_filtering_calldata_value(path: str, index: int, discarded: bool):
457457 to_sign = start_signature_payload (sig_ctx , 66 )
458458 to_sign += path .encode ()
459459 to_sign .append (index )
460- sig = CAL_COIN_META_PARTNER .sign (to_sign )
460+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
461461 response = app_client .eip712_filtering_calldata_value (index , sig , discarded )
462462 assert response .status == StatusWord .SWO_SUCCESS , \
463463 f"Error sending filtering calldata value for { path } : { response .status } "
@@ -467,7 +467,7 @@ def send_filtering_calldata_callee(path: str, index: int, discarded: bool):
467467 to_sign = start_signature_payload (sig_ctx , 77 )
468468 to_sign += path .encode ()
469469 to_sign .append (index )
470- sig = CAL_COIN_META_PARTNER .sign (to_sign )
470+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
471471 response = app_client .eip712_filtering_calldata_callee (index , sig , discarded )
472472 assert response .status == StatusWord .SWO_SUCCESS , \
473473 f"Error sending filtering calldata callee for { path } : { response .status } "
@@ -477,7 +477,7 @@ def send_filtering_calldata_chain_id(path: str, index: int, discarded: bool):
477477 to_sign = start_signature_payload (sig_ctx , 88 )
478478 to_sign += path .encode ()
479479 to_sign .append (index )
480- sig = CAL_COIN_META_PARTNER .sign (to_sign )
480+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
481481 response = app_client .eip712_filtering_calldata_chain_id (index , sig , discarded )
482482 assert response .status == StatusWord .SWO_SUCCESS , \
483483 f"Error sending filtering calldata callee for { path } : { response .status } "
@@ -487,7 +487,7 @@ def send_filtering_calldata_selector(path: str, index: int, discarded: bool):
487487 to_sign = start_signature_payload (sig_ctx , 99 )
488488 to_sign += path .encode ()
489489 to_sign .append (index )
490- sig = CAL_COIN_META_PARTNER .sign (to_sign )
490+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
491491 response = app_client .eip712_filtering_calldata_selector (index , sig , discarded )
492492 assert response .status == StatusWord .SWO_SUCCESS , \
493493 f"Error sending filtering calldata callee for { path } : { response .status } "
@@ -497,7 +497,7 @@ def send_filtering_calldata_amount(path: str, index: int, discarded: bool):
497497 to_sign = start_signature_payload (sig_ctx , 110 )
498498 to_sign += path .encode ()
499499 to_sign .append (index )
500- sig = CAL_COIN_META_PARTNER .sign (to_sign )
500+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
501501 response = app_client .eip712_filtering_calldata_amount (index , sig , discarded )
502502 assert response .status == StatusWord .SWO_SUCCESS , \
503503 f"Error sending filtering calldata callee for { path } : { response .status } "
@@ -507,7 +507,7 @@ def send_filtering_calldata_spender(path: str, index: int, discarded: bool):
507507 to_sign = start_signature_payload (sig_ctx , 121 )
508508 to_sign += path .encode ()
509509 to_sign .append (index )
510- sig = CAL_COIN_META_PARTNER .sign (to_sign )
510+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
511511 response = app_client .eip712_filtering_calldata_spender (index , sig , discarded )
512512 assert response .status == StatusWord .SWO_SUCCESS , \
513513 f"Error sending filtering calldata callee for { path } : { response .status } "
@@ -518,7 +518,7 @@ def send_filtering_raw(path: str, display_name: str, discarded: bool):
518518 to_sign = start_signature_payload (sig_ctx , 72 )
519519 to_sign += path .encode ()
520520 to_sign += display_name .encode ()
521- sig = CAL_COIN_META_PARTNER .sign (to_sign )
521+ sig = CAL_COIN_META_PARTNER .sign (bytes ( to_sign ) )
522522 with app_client .eip712_filtering_raw (display_name , sig , discarded ):
523523 pass
524524 response = app_client .response ()
0 commit comments