-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub use revm::primitives::{SpecId, B256}; | ||
use revm::{db::EmptyDB, Evm}; | ||
|
||
pub struct TestEth<'evm> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
use edr_eth2::TestEth; | ||
use edr_opt::TestOpt; | ||
|
||
fn main() -> anyhow::Result<()> { | ||
let mut test_opt = TestOpt::default(); | ||
let mut test_eth = TestEth::default(); | ||
let eth_hash = edr_eth2::B256::ZERO; | ||
let opt_hash = edr_opt::B256::ZERO; | ||
|
||
if eth_hash == opt_hash { | ||
println!("The same hash"); | ||
} | ||
|
||
let eth_spec_id = edr_eth2::SpecId::ECOTONE; | ||
let opt_spec_id = edr_opt::SpecId::LATEST; | ||
|
||
test_eth.evm.transact()?; | ||
test_opt.evm.transact()?; | ||
if eth_spec_id == opt_spec_id { | ||
println!("The same spec id"); | ||
} | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters