Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos in thiserror #10

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ pub enum SignableError {
#[error("Unable to separate signable transaction data into call data and extensions data.")]
CutSignable,

#[error("(0)")]
#[error("{0}")]
ExtensionsList(ExtensionsError),

#[error("Extensions error. Block hash does not match the chain genesis hash in transaction with immortal `Era`.")]
ImmortalHashMismatch,

#[error(
"Unable to decode the call data of the signable transaction. Pallet (0) has no calls."
"Unable to decode the call data of the signable transaction. Pallet {0} has no calls."
)]
NoCallsInPallet(String),

#[error("Unable to decode the call data of the signable transaction. Call type in pallet (0) is not an enum.")]
#[error("Unable to decode the call data of the signable transaction. Call type in pallet {0} is not an enum.")]
NotACall(String),

#[error("Unable to decode the call data of the signable transaction. Metadata contains no pallet with index (0).")]
#[error("Unable to decode the call data of the signable transaction. Metadata contains no pallet with index {0}.")]
PalletNotFound(u8),

#[error("Parsing error. (0)")]
#[error("Parsing error. {0}")]
Parsing(ParserError),

#[error("Some call data remained unused after decoding.")]
Expand Down Expand Up @@ -58,7 +58,7 @@ pub enum ParserError {
#[error("Declared type is not suitable BitOrder type for BitVec.")]
NotBitOrderType,

#[error("Unable to decode data piece as (0).")]
#[error("Unable to decode data piece as {0}.")]
TypeFailure(&'static str),

#[error("Encountered unexpected Option<_> variant.")]
Expand All @@ -70,7 +70,7 @@ pub enum ParserError {
#[error("Unexpected type inside compact.")]
UnexpectedCompactInsides,

#[error("Unable to resolve type id (0) in metadata type registry.")]
#[error("Unable to resolve type id {0} in metadata type registry.")]
V14TypeNotResolved(u32),
}

Expand Down