diff --git a/rust/vote-tx-v2/src/decoding.rs b/rust/vote-tx-v2/src/decoding.rs index b8e78038..213323cf 100644 --- a/rust/vote-tx-v2/src/decoding.rs +++ b/rust/vote-tx-v2/src/decoding.rs @@ -39,7 +39,7 @@ impl Decode<'_, ()> for GeneralizedTx { let mut sign = coset::CoseSign::from_slice(&sign_bytes).map_err(|_| { minicbor::decode::Error::message("`signature` must be COSE_Sign encoded object") })?; - // We dont need to hold the original encoded data of the COSE protected header + // We don't need to hold the original encoded data of the COSE protected header sign.protected.original_data = None; sign }; diff --git a/rust/vote-tx-v2/src/lib.rs b/rust/vote-tx-v2/src/lib.rs index 9d542f88..4d3bfa88 100644 --- a/rust/vote-tx-v2/src/lib.rs +++ b/rust/vote-tx-v2/src/lib.rs @@ -1,6 +1,8 @@ //! A Catalyst vote transaction v1 object, structured following this //! [spec](https://input-output-hk.github.io/catalyst-libs/architecture/08_concepts/catalyst_voting/v2/) +// cspell: words Coap + use anyhow::anyhow; use minicbor::{data::Int, Decode, Decoder, Encode, Encoder}; @@ -43,7 +45,7 @@ pub struct Vote { #[derive(Debug, Clone, PartialEq, Eq)] pub struct EventMap(Vec<(EventKey, Vec)>); -/// An `event-key` type defintion. +/// An `event-key` type definition. #[derive(Debug, Clone, PartialEq, Eq)] pub enum EventKey { /// CBOR `int` type