@@ -443,7 +443,6 @@ impl fmt::Display for Hash {
443443
444444#[ cfg( test) ]
445445mod tests {
446- use cosmwasm_std:: StdError ;
447446 use serde_test:: { assert_de_tokens, assert_ser_tokens, Token } ;
448447 use std:: panic:: catch_unwind;
449448
@@ -493,38 +492,38 @@ mod tests {
493492 fn subaccount_id_checks ( ) {
494493 let wrong_prefix_err = SubaccountId :: new ( "00B5e09b93aCEb70C1711aF078922fA256011D7e56000000000000000000000045" ) . unwrap_err ( ) ;
495494 assert_eq ! (
496- wrong_prefix_err,
497- StdError :: generic_err ( " Invalid prefix: subaccount_id must start with 0x")
495+ wrong_prefix_err. to_string ( ) ,
496+ "kind: Other, error: Invalid prefix: subaccount_id must start with 0x"
498497 ) ;
499498
500499 let wrong_length_err = SubaccountId :: new ( "0xB5e09b93aCEb70C1711aF078922fA256011D7e5600000000000000000000004" ) . unwrap_err ( ) ;
501500 assert_eq ! (
502- wrong_length_err,
503- StdError :: generic_err ( " Invalid length: subaccount_id must be exactly 66 characters")
501+ wrong_length_err. to_string ( ) ,
502+ "kind: Other, error: Invalid length: subaccount_id must be exactly 66 characters"
504503 ) ;
505504
506505 let wrong_length_err = SubaccountId :: new ( "0xB5e09b93aCEb70C1711aF078922fA256011D7e560000000000000000000000451" ) . unwrap_err ( ) ;
507506 assert_eq ! (
508- wrong_length_err,
509- StdError :: generic_err ( " Invalid length: subaccount_id must be exactly 66 characters")
507+ wrong_length_err. to_string ( ) ,
508+ "kind: Other, error: Invalid length: subaccount_id must be exactly 66 characters"
510509 ) ;
511510 }
512511
513512 #[ test]
514513 fn market_id_checks ( ) {
515514 let wrong_prefix_err = MarketId :: new ( "0001EDFAB47F124748DC89998EB33144AF734484BA07099014594321729A0CA16B" ) . unwrap_err ( ) ;
516- assert_eq ! ( wrong_prefix_err, StdError :: generic_err ( " Invalid prefix: market_id must start with 0x") ) ;
515+ assert_eq ! ( wrong_prefix_err. to_string ( ) , "kind: Other, error: Invalid prefix: market_id must start with 0x") ;
517516
518517 let wrong_length_err = MarketId :: new ( "0x01EDFAB47F124748DC89998EB33144AF734484BA07099014594321729A0CA16" ) . unwrap_err ( ) ;
519518 assert_eq ! (
520- wrong_length_err,
521- StdError :: generic_err ( " Invalid length: market_id must be exactly 66 characters")
519+ wrong_length_err. to_string ( ) ,
520+ "kind: Other, error: Invalid length: market_id must be exactly 66 characters"
522521 ) ;
523522
524523 let wrong_length_err = MarketId :: new ( "0x01EDFAB47F124748DC89998EB33144AF734484BA07099014594321729A0CA16B2" ) . unwrap_err ( ) ;
525524 assert_eq ! (
526- wrong_length_err,
527- StdError :: generic_err ( " Invalid length: market_id must be exactly 66 characters")
525+ wrong_length_err. to_string ( ) ,
526+ "kind: Other, error: Invalid length: market_id must be exactly 66 characters"
528527 ) ;
529528 }
530529
0 commit comments