Skip to content

Commit

Permalink
Fix small bug in test utils (#4570)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethDreamer authored Aug 7, 2023
1 parent a36e34e commit c8ea3e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ impl<T: EthSpec> ExecutionBlockGenerator<T> {
ForkName::Base | ForkName::Altair | ForkName::Merge | ForkName::Capella => {}
ForkName::Deneb => {
// get random number between 0 and Max Blobs
let num_blobs = rand::random::<usize>() % T::max_blobs_per_block();
let num_blobs = rand::random::<usize>() % (T::max_blobs_per_block() + 1);
let kzg = self.kzg.as_ref().ok_or("kzg not initialized")?;
let (bundle, transactions) = generate_random_blobs(num_blobs, kzg)?;
for tx in Vec::from(transactions) {
Expand Down

0 comments on commit c8ea3e1

Please sign in to comment.