Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed May 17, 2024
1 parent b2f2db6 commit e7e82a0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use alloc::{collections::BTreeMap, str::FromStr};

use alloy_primitives::Address;
use anyhow::{bail, Result};
use lazy_static::lazy_static;
use raiko_primitives::{uint, BlockNumber, ChainId, U256};
use revm::primitives::SpecId;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -294,24 +293,4 @@ mod tests {
let deserialized: ChainSpec = serde_json::from_str(&json).unwrap();
assert_eq!(spec, deserialized);
}

#[ignore]
#[test]
fn serde_chain_spec_list() {
let chain_spec_list: Vec<ChainSpec> = vec![
ETH_MAINNET_CHAIN_SPEC.clone(),
ETH_HOLESKY_CHAIN_SPEC.clone(),
TAIKO_A7_CHAIN_SPEC.clone(),
];
// write to json file
let json = serde_json::to_string(&chain_spec_list).unwrap();
std::fs::write("chain_spec_list.json", json).unwrap();

let json = std::fs::read_to_string("chain_spec_list.json").unwrap();
let deserialized: Vec<ChainSpec> = serde_json::from_str(&json).unwrap();

for (a, b) in chain_spec_list.iter().zip(deserialized.iter()) {
assert_eq!(a, b);
}
}
}

0 comments on commit e7e82a0

Please sign in to comment.