Skip to content

Commit

Permalink
Use ssz bundle instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Oct 19, 2023
1 parent 6c68fd9 commit 59737eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use kzg::{Kzg, KzgCommitment, KzgProof};
use parking_lot::Mutex;
use rand::{rngs::StdRng, Rng, SeedableRng};
use serde::{Deserialize, Serialize};
use ssz::Decode;
use ssz_types::VariableList;
use std::collections::HashMap;
use std::sync::Arc;
Expand All @@ -27,7 +28,7 @@ use types::{

use super::DEFAULT_TERMINAL_BLOCK;

const TEST_BLOB_BUNDLE: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle.json");
const TEST_BLOB_BUNDLE: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle.ssz");

const GAS_LIMIT: u64 = 16384;
const GAS_USED: u64 = GAS_LIMIT - 1;
Expand Down Expand Up @@ -651,8 +652,8 @@ pub fn load_test_blobs_bundle<E: EthSpec>() -> Result<(KzgCommitment, KzgProof,
commitments,
proofs,
blobs,
} = serde_json::from_reader(TEST_BLOB_BUNDLE)
.map_err(|e| format!("Unable to decode JSON: {:?}", e))?;
} = BlobsBundle::from_ssz_bytes(TEST_BLOB_BUNDLE)
.map_err(|e| format!("Unable to decode ssz: {:?}", e))?;

Ok((
commitments
Expand Down

This file was deleted.

Binary file not shown.

0 comments on commit 59737eb

Please sign in to comment.