Skip to content

Commit d07aa06

Browse files
committed
fix clippy
1 parent 62191a7 commit d07aa06

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

integration-tests/erc1155/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![cfg_attr(not(feature = "std"), no_std, no_main)]
22

33
use 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

integration-tests/sr25519-verification/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)