Skip to content

Commit 77cfb46

Browse files
authored
1 parent 4192610 commit 77cfb46

File tree

1 file changed

+2
-6
lines changed
  • pallets/transaction-storage/src

1 file changed

+2
-6
lines changed

pallets/transaction-storage/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ use polkadot_sdk_frame::{
3838
prelude::*,
3939
};
4040
use sp_transaction_storage_proof::{
41-
encode_index, random_chunk, ChunkIndex, InherentError, TransactionStorageProof, CHUNK_SIZE,
42-
INHERENT_IDENTIFIER,
41+
encode_index, num_chunks, random_chunk, ChunkIndex, InherentError, TransactionStorageProof,
42+
CHUNK_SIZE, INHERENT_IDENTIFIER,
4343
};
4444

4545
// Re-export pallet items so that they can be accessed from the crate namespace.
@@ -151,10 +151,6 @@ impl CheckContext {
151151
}
152152
}
153153

154-
fn num_chunks(bytes: u32) -> u32 {
155-
(bytes as u64).div_ceil(CHUNK_SIZE as u64) as u32
156-
}
157-
158154
#[polkadot_sdk_frame::pallet]
159155
pub mod pallet {
160156
use super::*;

0 commit comments

Comments
 (0)