Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 5, 2024
1 parent 62191a7 commit d07aa06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion integration-tests/erc1155/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![cfg_attr(not(feature = "std"), no_std, no_main)]

use ink::{
env::ReturnErrorCode,
prelude::vec::Vec,
primitives::AccountId,
};
Expand Down Expand Up @@ -414,6 +413,8 @@ mod erc1155 {
)
}
Err(e) => {
use ink::env::ReturnErrorCode;

match e {
ink::env::Error::ReturnError(
ReturnErrorCode::CodeNotFound
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/sr25519-verification/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod sr25519_verification {
143,
];
let result = ink::env::sr25519_verify(&signature, &message, &public_key);
assert_eq!(result, Err(ink::env::Error::Sr25519VerifyFailed));
assert_eq!(result, Err(ink::env::ReturnErrorCode::Sr25519VerifyFailed.into()));
}

#[ink::test]
Expand All @@ -128,7 +128,7 @@ pub mod sr25519_verification {
143,
];
let result = ink::env::sr25519_verify(&signature, &message, &public_key);
assert_eq!(result, Err(ink::env::Error::Sr25519VerifyFailed));
assert_eq!(result, Err(ink::env::ReturnErrorCode::Sr25519VerifyFailed.into()));
}
}
}

0 comments on commit d07aa06

Please sign in to comment.