Skip to content

Commit

Permalink
chore: set hardfork explicitily for deposit tests (#6422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 24, 2023
1 parent 66967be commit 7842f32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/anvil/tests/it/optimism.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! tests for OP chain support
use anvil::{spawn, NodeConfig};
use anvil::{spawn, Hardfork, NodeConfig};
use ethers::{
abi::Address,
providers::Middleware,
Expand Down Expand Up @@ -50,7 +50,8 @@ async fn test_deposits_not_supported_if_optimism_disabled() {
#[tokio::test(flavor = "multi_thread")]
async fn test_send_value_deposit_transaction() {
// enable the Optimism flag
let (api, handle) = spawn(NodeConfig::test().with_optimism(true)).await;
let (api, handle) =
spawn(NodeConfig::test().with_optimism(true).with_hardfork(Some(Hardfork::Paris))).await;
let provider = handle.http_provider();

let send_value: U256 = "1234".parse().unwrap();
Expand Down Expand Up @@ -91,7 +92,8 @@ async fn test_send_value_deposit_transaction() {
#[tokio::test(flavor = "multi_thread")]
async fn test_send_value_raw_deposit_transaction() {
// enable the Optimism flag
let (api, handle) = spawn(NodeConfig::test().with_optimism(true)).await;
let (api, handle) =
spawn(NodeConfig::test().with_optimism(true).with_hardfork(Some(Hardfork::Paris))).await;
let provider = handle.http_provider();

let send_value: U256 = "1234".parse().unwrap();
Expand Down

0 comments on commit 7842f32

Please sign in to comment.