Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set hardfork explicitily for deposit tests #6422

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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