diff --git a/cli/artifacts/metadata.scale b/cli/artifacts/metadata.scale index 68a84527c..3eb331b8a 100644 Binary files a/cli/artifacts/metadata.scale and b/cli/artifacts/metadata.scale differ diff --git a/cli/polka-storage/storagext/src/runtime/mod.rs b/cli/polka-storage/storagext/src/runtime/mod.rs index e73651eb1..d759fc651 100644 --- a/cli/polka-storage/storagext/src/runtime/mod.rs +++ b/cli/polka-storage/storagext/src/runtime/mod.rs @@ -77,7 +77,7 @@ pub mod display; derive = "::serde::Serialize" ), derive_for_type( - path = "pallet_market::pallet::DealSettlementError", + path = "pallet_market::error::DealSettlementError", derive = "::serde::Serialize" ), derive_for_type( diff --git a/primitives/commitment/src/piece.rs b/primitives/commitment/src/piece.rs index 7adeb8fb8..5503a4db8 100644 --- a/primitives/commitment/src/piece.rs +++ b/primitives/commitment/src/piece.rs @@ -198,7 +198,7 @@ impl Into for PaddedPieceSize { } } -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub enum PaddedPieceSizeError { SizeTooSmall, SizeNotPowerOfTwo, @@ -220,7 +220,7 @@ mod tests { fn invalid_piece_checks() { assert_eq!( PaddedPieceSize::new(127), - Err("minimum piece size is 128 bytes") + Err(PaddedPieceSizeError::SizeTooSmall) ); assert_eq!( UnpaddedPieceSize::new(126), @@ -228,7 +228,7 @@ mod tests { ); assert_eq!( PaddedPieceSize::new(0b10000001), - Err("padded piece size must be a power of 2") + Err(PaddedPieceSizeError::SizeNotPowerOfTwo) ); assert_eq!( UnpaddedPieceSize::new(0b1110111000),