File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11#![ cfg_attr( not( feature = "std" ) , no_std, no_main) ]
22
33use ink:: {
4- env:: ReturnErrorCode ,
54 prelude:: vec:: Vec ,
65 primitives:: AccountId ,
76} ;
@@ -414,6 +413,8 @@ mod erc1155 {
414413 )
415414 }
416415 Err ( e) => {
416+ use ink:: env:: ReturnErrorCode ;
417+
417418 match e {
418419 ink:: env:: Error :: ReturnError (
419420 ReturnErrorCode :: CodeNotFound
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ pub mod sr25519_verification {
102102 143 ,
103103 ] ;
104104 let result = ink:: env:: sr25519_verify ( & signature, & message, & public_key) ;
105- assert_eq ! ( result, Err ( ink:: env:: Error :: Sr25519VerifyFailed ) ) ;
105+ assert_eq ! ( result, Err ( ink:: env:: ReturnErrorCode :: Sr25519VerifyFailed . into ( ) ) ) ;
106106 }
107107
108108 #[ ink:: test]
@@ -128,7 +128,7 @@ pub mod sr25519_verification {
128128 143 ,
129129 ] ;
130130 let result = ink:: env:: sr25519_verify ( & signature, & message, & public_key) ;
131- assert_eq ! ( result, Err ( ink:: env:: Error :: Sr25519VerifyFailed ) ) ;
131+ assert_eq ! ( result, Err ( ink:: env:: ReturnErrorCode :: Sr25519VerifyFailed . into ( ) ) ) ;
132132 }
133133 }
134134}
You can’t perform that action at this time.
0 commit comments