Correct typo in coordinator

Identified by akil a while ago.
This commit is contained in:
Luke Parker 2024-07-14 19:35:43 -04:00
parent 85fc31fd82
commit 97bfb183e8
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ use crate::{
}; };
use tendermint::{ use tendermint::{
verify_tendermint_evience, verify_tendermint_evidence,
ext::{Network, Commit}, ext::{Network, Commit},
}; };
@ -68,7 +68,7 @@ pub(crate) fn verify_tendermint_tx<N: Network>(
tx.verify()?; tx.verify()?;
match tx { match tx {
TendermintTx::SlashEvidence(ev) => verify_tendermint_evience::<N>(ev, schema, commit) TendermintTx::SlashEvidence(ev) => verify_tendermint_evidence::<N>(ev, schema, commit)
.map_err(|_| TransactionError::InvalidContent)?, .map_err(|_| TransactionError::InvalidContent)?,
} }

View file

@ -158,7 +158,7 @@ fn decode_and_verify_signed_message<N: Network>(
Ok(msg) Ok(msg)
} }
pub fn verify_tendermint_evience<N: Network>( pub fn verify_tendermint_evidence<N: Network>(
evidence: &Evidence, evidence: &Evidence,
schema: &N::SignatureScheme, schema: &N::SignatureScheme,
commit: impl Fn(u64) -> Option<Commit<N::SignatureScheme>>, commit: impl Fn(u64) -> Option<Commit<N::SignatureScheme>>,