Skip to content

Commit

Permalink
fix: file metadata generate
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqaljn committed Nov 27, 2023
1 parent 835aae9 commit 4720f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c-pallets/audit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub mod pallet {
pub(super) type VerifyReassignCount<T: Config> = StorageValue<_, u8, ValueQuery>;

#[pallet::storage]
#[pallet::getter(fn chllenge_snap_shot)]
#[pallet::getter(fn challenge_snap_shot)]
pub(super) type ChallengeSnapShot<T: Config> =
StorageMap<_, Blake2_128Concat, AccountOf<T>, ChallengeInfo<T>>;

Expand Down
2 changes: 2 additions & 0 deletions c-pallets/file-bank/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ impl<T: Config> Pallet<T> {
) -> DispatchResult {
let mut segment_info_list: BoundedVec<SegmentInfo<T>, T::SegmentCount> = Default::default();
ensure!(complete_list.len() == FRAGMENT_COUNT as usize, Error::<T>::Unexpected);
let mut complete_list = complete_list;
complete_list.sort_by_key(|info| info.index);
for segment in deal_info.iter() {
let mut segment_info = SegmentInfo::<T> {
hash: segment.hash,
Expand Down

0 comments on commit 4720f4f

Please sign in to comment.