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 1
1
#![ cfg_attr( not( feature = "std" ) , no_std, no_main) ]
2
2
3
3
use ink:: {
4
- env:: ReturnErrorCode ,
5
4
prelude:: vec:: Vec ,
6
5
primitives:: AccountId ,
7
6
} ;
@@ -414,6 +413,8 @@ mod erc1155 {
414
413
)
415
414
}
416
415
Err ( e) => {
416
+ use ink:: env:: ReturnErrorCode ;
417
+
417
418
match e {
418
419
ink:: env:: Error :: ReturnError (
419
420
ReturnErrorCode :: CodeNotFound
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ pub mod sr25519_verification {
102
102
143 ,
103
103
] ;
104
104
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 ( ) ) ) ;
106
106
}
107
107
108
108
#[ ink:: test]
@@ -128,7 +128,7 @@ pub mod sr25519_verification {
128
128
143 ,
129
129
] ;
130
130
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 ( ) ) ) ;
132
132
}
133
133
}
134
134
}
You can’t perform that action at this time.
0 commit comments