Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Nov 15, 2024
1 parent c006267 commit 5fa0746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/vote-tx-v2/src/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
4 changes: 3 additions & 1 deletion rust/vote-tx-v2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down Expand Up @@ -43,7 +45,7 @@ pub struct Vote {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct EventMap(Vec<(EventKey, Vec<u8>)>);

/// An `event-key` type defintion.
/// An `event-key` type definition.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum EventKey {
/// CBOR `int` type
Expand Down

0 comments on commit 5fa0746

Please sign in to comment.