Skip to content

Commit

Permalink
[substrate-apply] precompile-bioauth:mock Crypto Pair trait refactory…
Browse files Browse the repository at this point in the history
… (#13657)
  • Loading branch information
dmitrylavrenov committed Feb 7, 2024
1 parent 039b419 commit e0e15b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/precompile-bioauth/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -61,7 +61,7 @@ impl From<Vec<u8>> for MockOpaqueAuthTicket {
pub struct MockAuthTicketConverter;

impl TryConvert<MockOpaqueAuthTicket, AuthTicket<ValidatorPublicKey>> for MockAuthTicketConverter {
type Error = Infallible;
type Error = DeriveError;

fn try_convert(
value: MockOpaqueAuthTicket,
Expand All @@ -75,7 +75,7 @@ impl TryConvert<MockOpaqueAuthTicket, AuthTicket<ValidatorPublicKey>> for MockAu
pub struct MockVerifier;

impl pallet_bioauth::Verifier<Vec<u8>> for MockVerifier {
type Error = Infallible;
type Error = DeriveError;

fn verify<'a, D>(&self, _data: D, _signature: Vec<u8>) -> Result<bool, Self::Error>
where
Expand Down

0 comments on commit e0e15b9

Please sign in to comment.