Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Jan 16, 2025
1 parent 299dac5 commit 777b364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pallets/storage-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env_logger = { workspace = true }
multihash-codetable = { workspace = true, features = ["blake2b"] }
pallet-balances = { workspace = true, default-features = false }
pallet-market = { workspace = true, default-features = false }
primitives = { workspace = true, features = ["builder"] }
primitives = { workspace = true, default-features = false, features = ["builder"] }
rstest = { workspace = true }
sp-io = { workspace = true }

Expand Down
8 changes: 4 additions & 4 deletions primitives/src/sector/pre_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
use codec::{Decode, Encode};
use scale_info::TypeInfo;
use sp_core::ConstU32;
use sp_runtime::BoundedVec;
use sp_runtime::{BoundedVec, RuntimeDebug};

use crate::{
proofs::RegisteredSealProof, sector::SectorNumber, DealId, CID_SIZE_IN_BYTES,
MAX_DEALS_PER_SECTOR,
};

/// This type is passed into the pre commit function on the storage provider pallet
#[derive(Clone, Debug, Decode, Encode, PartialEq, Eq, TypeInfo)]
#[derive(Clone, RuntimeDebug, Decode, Encode, PartialEq, Eq, TypeInfo)]
pub struct SectorPreCommitInfo<BlockNumber> {
pub seal_proof: RegisteredSealProof,
/// Which sector number this SP is pre-committing.
Expand Down Expand Up @@ -89,9 +89,9 @@ pub mod builder {
seal_proof: RegisteredSealProof::StackedDRG2KiBV1P1,
sector_number: SectorNumber::new(1).unwrap(),
sealed_cid,
deal_ids: BoundedVec::try_from(vec![1, 2])
deal_ids: BoundedVec::try_from(vec![0, 1])
.expect("default valid should always be within bounds"),
expiration: BlockNumber::one() * 120u32.into(),
expiration: 120u32.into(),
unsealed_cid,
seal_randomness_height: BlockNumber::one(),
}
Expand Down

0 comments on commit 777b364

Please sign in to comment.