mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Use array-bytes for All Array/Bytes/Hex Operations (#12190)
* Use `array-bytes` for All Array/Bytes/Hex Operations Signed-off-by: Xavier Lau <xavier@inv.cafe> * Reorder * Self Review * Format * Fix Tests * Bump `array-bytes` * Optimize large test res Signed-off-by: Xavier Lau <xavier@inv.cafe> Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -69,8 +69,8 @@ pub enum Error {
|
||||
#[error("Key storage issue encountered")]
|
||||
KeyStorage(#[from] sc_keystore::Error),
|
||||
|
||||
#[error("Invalid hexadecimal string data")]
|
||||
HexDataConversion(#[from] hex::FromHexError),
|
||||
#[error("Invalid hexadecimal string data, {0:?}")]
|
||||
HexDataConversion(array_bytes::Error),
|
||||
|
||||
/// Application specific error chain sequence forwarder.
|
||||
#[error(transparent)]
|
||||
@@ -97,3 +97,9 @@ impl From<crypto::PublicError> for Error {
|
||||
Error::InvalidUri(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<array_bytes::Error> for Error {
|
||||
fn from(e: array_bytes::Error) -> Error {
|
||||
Error::HexDataConversion(e)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user