Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed Oct 18, 2024
1 parent 006e813 commit cb45671
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cb45671

Please sign in to comment.