From 71e718b2ce7e7bff6a19545eaa426392ad4368c3 Mon Sep 17 00:00:00 2001 From: anim001k <140460766+anim001k@users.noreply.github.com> Date: Tue, 29 Jul 2025 13:56:21 +0200 Subject: [PATCH] Update lib.rs --- pallets/liveness/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/liveness/src/lib.rs b/pallets/liveness/src/lib.rs index e9a339d..dfc5e83 100644 --- a/pallets/liveness/src/lib.rs +++ b/pallets/liveness/src/lib.rs @@ -35,7 +35,7 @@ pub mod pallet { #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] #[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] pub enum ReportType { - /// Geode failed challange check + /// Geode failed challenge check Challenge = 0x00, /// Geode failed service check Service, @@ -263,7 +263,7 @@ pub mod pallet { _proof: Vec, ) -> DispatchResultWithPostInfo { let who = ensure_signed(origin)?; - // check attestor existance and whether attested + // check attestor existence and whether attested ensure!( pallet_attestor::Attestors::::contains_key(&who), pallet_attestor::Error::::InvalidAttestor @@ -318,7 +318,7 @@ pub mod pallet { geode: T::AccountId, ) -> DispatchResultWithPostInfo { let who = ensure_signed(origin)?; - // check attestor existance and whether atteseted + // check attestor existence and whether atteseted ensure!( pallet_attestor::Attestors::::contains_key(&who), pallet_attestor::Error::::InvalidAttestor @@ -329,7 +329,7 @@ pub mod pallet { Error::::AlreadyAttestFor ); - // check geode existance and state + // check geode existence and state ensure!( pallet_geode::Geodes::::contains_key(&geode), pallet_geode::Error::::InvalidGeode