Skip to content

Commit

Permalink
Updated receipt tests for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyouell committed Nov 12, 2024
1 parent af6589f commit 6a94288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mp2-common/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ mod test {

use alloy::{
network::TransactionBuilder,
node_bindings::Anvil,
primitives::{Bytes, Log, U256},
providers::{ext::AnvilApi, Provider, ProviderBuilder},
rlp::Decodable,
Expand Down Expand Up @@ -1016,7 +1017,7 @@ mod test {

#[tokio::test]
async fn test_receipt_query() -> Result<()> {
let rpc = ProviderBuilder::new().on_anvil();
let rpc = ProviderBuilder::new().on_anvil_with_config(|anvil| Anvil::block_time(anvil, 1));

// Make a contract that emits events so we can pick up on them
sol! {
Expand Down
3 changes: 2 additions & 1 deletion mp2-test/src/mpt_sequential.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use alloy::{
eips::BlockNumberOrTag,
network::TransactionBuilder,
node_bindings::Anvil,
primitives::{Address, U256},
providers::{ext::AnvilApi, Provider, ProviderBuilder},
sol,
Expand Down Expand Up @@ -111,7 +112,7 @@ pub fn generate_receipt_proofs() -> Vec<ReceiptProofInfo> {
rt.block_on(async {
// Spin up a local node.

let rpc = ProviderBuilder::new().on_anvil();
let rpc = ProviderBuilder::new().on_anvil_with_config(|anvil| Anvil::block_time(anvil, 1));

// Deploy the contract using anvil
let event_contract = EventEmitter::deploy(rpc.clone()).await.unwrap();
Expand Down

0 comments on commit 6a94288

Please sign in to comment.