From e0e15b9143ef840a2e96903d71f4d4ed00e064d1 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Wed, 7 Feb 2024 15:12:42 +0300 Subject: [PATCH] [substrate-apply] precompile-bioauth:mock Crypto Pair trait refactory (#13657) --- crates/precompile-bioauth/src/mock.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/precompile-bioauth/src/mock.rs b/crates/precompile-bioauth/src/mock.rs index d19cb0b5a..955337a9b 100644 --- a/crates/precompile-bioauth/src/mock.rs +++ b/crates/precompile-bioauth/src/mock.rs @@ -11,7 +11,7 @@ use pallet_bioauth::{AuthTicket, TryConvert}; use scale_info::TypeInfo; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; -use sp_core::{crypto::Infallible, H256}; +use sp_core::{crypto::DeriveError, H256}; use sp_runtime::{ testing::Header, traits::{BlakeTwo256, IdentityLookup}, @@ -61,7 +61,7 @@ impl From> for MockOpaqueAuthTicket { pub struct MockAuthTicketConverter; impl TryConvert> for MockAuthTicketConverter { - type Error = Infallible; + type Error = DeriveError; fn try_convert( value: MockOpaqueAuthTicket, @@ -75,7 +75,7 @@ impl TryConvert> for MockAu pub struct MockVerifier; impl pallet_bioauth::Verifier> for MockVerifier { - type Error = Infallible; + type Error = DeriveError; fn verify<'a, D>(&self, _data: D, _signature: Vec) -> Result where