Skip to content

Commit

Permalink
chore: remove $ form consensus error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 30, 2023
1 parent c4d74ac commit c11944d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Duplicated public keys ${duplicated_ids:?} found")]
#[error("Duplicated public keys {duplicated_ids:?} found")]
#[platform_serialize(unversioned)]
pub struct DuplicatedIdentityPublicKeyBasicError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Duplicated public key ids ${duplicated_ids:?} found")]
#[error("Duplicated public key ids {duplicated_ids:?} found")]
#[platform_serialize(unversioned)]
pub struct DuplicatedIdentityPublicKeyIdBasicError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Asset lock transaction ${transaction_id:?} output ${output_index:?} already used")]
#[error("Asset lock transaction {transaction_id} output {output_index} already used")]
#[platform_serialize(unversioned)]
pub struct IdentityAssetLockTransactionOutPointAlreadyExistsError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Asset Lock Transaction Output with index ${output_index} not found")]
#[error("Asset Lock Transaction Output with index {output_index} not found")]
#[platform_serialize(unversioned)]
pub struct IdentityAssetLockTransactionOutputNotFoundError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use thiserror::Error;
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error(
"Asset Lock output ${output_index} has invalid public key hash. Must be 20 length bytes hash"
"Asset Lock output {output_index} has invalid public key hash. Must be 20 length bytes hash"
)]
#[platform_serialize(unversioned)]
pub struct InvalidAssetLockTransactionOutputReturnSizeError {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use thiserror::Error;
use bincode::{Decode, Encode};

#[derive(Error, Debug, Clone, Encode, Decode, PlatformSerialize, PlatformDeserialize)]
#[error("Invalid asset lock transaction: ${message}")]
#[error("Invalid asset lock transaction: {message}")]
#[platform_serialize(unversioned)]
pub struct InvalidIdentityAssetLockTransactionError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Asset lock output ${output_index} is not a valid standard OP_RETURN output")]
#[error("Asset lock output {output_index} is not a valid standard OP_RETURN output")]
#[platform_serialize(unversioned)]
pub struct InvalidIdentityAssetLockTransactionOutputError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Invalid instant lock proof: ${message}")]
#[error("Invalid instant lock proof: {message}")]
#[platform_serialize(unversioned)]
pub struct InvalidInstantAssetLockProofError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Identity ${identity_id:?} already exists")]
#[error("Identity {identity_id:?} already exists")]
#[platform_serialize(unversioned)]
pub struct IdentityAlreadyExistsError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use bincode::{Decode, Encode};
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Insufficient identity ${identity_id} balance ${balance} required ${required_balance}")]
#[error("Insufficient identity {identity_id} balance ${balance} required ${required_balance}")]
#[platform_serialize(unversioned)]
pub struct IdentityInsufficientBalanceError {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use thiserror::Error;
#[derive(
Error, Debug, Clone, PartialEq, Eq, Encode, Decode, PlatformSerialize, PlatformDeserialize,
)]
#[error("Identity Public Key with id ${new_key_id} for identity ${identity_id:?} conflicts for purpose ${purpose} with key ${old_key_id} in the contract bounds of ${contract_id:?}")]
#[error("Identity Public Key with id {new_key_id} for identity {identity_id:?} conflicts for purpose {purpose} with key {old_key_id} in the contract bounds of {contract_id:?}")]
#[platform_serialize(unversioned)]
pub struct IdentityPublicKeyAlreadyExistsForUniqueContractBoundsError {
/*
Expand Down

0 comments on commit c11944d

Please sign in to comment.