Skip to content

Commit

Permalink
test: Fix tests in cli after metadata change
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed Nov 25, 2024
1 parent fca5379 commit 25c9404
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified cli/artifacts/metadata.scale
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/polka-storage/storagext/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions primitives/commitment/src/piece.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl Into<filecoin_proofs::PaddedBytesAmount> for PaddedPieceSize {
}
}

#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub enum PaddedPieceSizeError {
SizeTooSmall,
SizeNotPowerOfTwo,
Expand All @@ -220,15 +220,15 @@ 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),
Err("minimum piece size is 127 bytes")
);
assert_eq!(
PaddedPieceSize::new(0b10000001),
Err("padded piece size must be a power of 2")
Err(PaddedPieceSizeError::SizeNotPowerOfTwo)
);
assert_eq!(
UnpaddedPieceSize::new(0b1110111000),
Expand Down

0 comments on commit 25c9404

Please sign in to comment.