From cb456713f105cf9fc4cc84d5fe6e2ecf46acd23e Mon Sep 17 00:00:00 2001 From: smtmfft Date: Fri, 18 Oct 2024 07:58:08 +0000 Subject: [PATCH] fix compile --- lib/src/input.rs | 6 +++--- lib/src/utils.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/input.rs b/lib/src/input.rs index 8257955f..9ccc7665 100644 --- a/lib/src/input.rs +++ b/lib/src/input.rs @@ -16,7 +16,7 @@ use crate::{ consts::ChainSpec, primitives::mpt::MptNode, prover::Proof, - utils::{self, zlib_compress_data}, + utils::{zlib_compress_data, BLOB_DATA_CAPACITY}, }; /// Represents the state of an account's storage. @@ -145,12 +145,12 @@ impl BlockProposedFork { pub fn blob_tx_slice_param(&self) -> (usize, usize) { match self { - BlockProposedFork::Hekla(_) => (0, utils::BLOB_DATA_CAPACITY), + BlockProposedFork::Hekla(_) => (0, BLOB_DATA_CAPACITY), BlockProposedFork::Ontake(block) => ( block.meta.blobTxListOffset as usize, block.meta.blobTxListLength as usize, ), - _ => (0, utils::BLOB_DATA_CAPACITY), + _ => (0, BLOB_DATA_CAPACITY), } } } diff --git a/lib/src/utils.rs b/lib/src/utils.rs index 2ab73817..c3a14ae7 100644 --- a/lib/src/utils.rs +++ b/lib/src/utils.rs @@ -91,7 +91,7 @@ pub fn generate_transactions( const BLOB_FIELD_ELEMENT_NUM: usize = 4096; const BLOB_FIELD_ELEMENT_BYTES: usize = 32; -const BLOB_DATA_CAPACITY: usize = BLOB_FIELD_ELEMENT_NUM * BLOB_FIELD_ELEMENT_BYTES; +pub(crate) const BLOB_DATA_CAPACITY: usize = BLOB_FIELD_ELEMENT_NUM * BLOB_FIELD_ELEMENT_BYTES; // max call data bytes const CALL_DATA_CAPACITY: usize = BLOB_FIELD_ELEMENT_NUM * (BLOB_FIELD_ELEMENT_BYTES - 1); const BLOB_VERSION_OFFSET: usize = 1;