Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOsiris authored and 0xForerunner committed Oct 10, 2024
1 parent ac7fd69 commit 087536b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions world-chain-builder/src/e2e_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,9 @@ impl WorldChainBuilderTestContext {
pbh_nonce: u16,
tx_nonce: u64,
) -> Bytes {
let raw_tx = TransactionTestContext::transfer_tx_bytes(
self.node.inner.chain_spec().chain.id(),
signer.clone(),
tx_nonce,
)
.await;

let tx = tx(DEV_CHAIN_ID, None, tx_nonce);
let envelope = TransactionTestContext::sign_tx(signer.clone(), tx).await;
let raw_tx = envelope.encoded_2718();
let mut data = raw_tx.as_ref();
let recovered = PooledTransactionsElement::decode_enveloped(&mut data).unwrap();
let proof = self.valid_proof(
Expand Down
2 changes: 1 addition & 1 deletion world-chain-builder/src/node/builder.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::{path::Path, sync::Arc};

use eyre::eyre::Result;
use reth_db::DatabaseEnv;
use reth::api::{FullNodeComponents, NodeAddOns};
use reth::builder::{
components::ComponentsBuilder, FullNodeTypes, Node, NodeTypes, NodeTypesWithEngine,
};
use reth_db::DatabaseEnv;
use reth_optimism_chainspec::OpChainSpec;
use reth_optimism_node::{
args::RollupArgs,
Expand Down
6 changes: 3 additions & 3 deletions world-chain-builder/src/pool/builder.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::sync::Arc;

use reth_db::DatabaseEnv;
use reth::builder::components::PoolBuilder;
use reth::builder::{BuilderContext, FullNodeTypes, NodeTypes};
use reth::transaction_pool::blobstore::DiskFileBlobStore;
use reth::transaction_pool::TransactionValidationTaskExecutor;
use reth_db::DatabaseEnv;
use reth_optimism_chainspec::OpChainSpec;
use reth_optimism_node::txpool::OpTransactionValidator;
use reth_provider::CanonStateSubscriptions;
use reth::transaction_pool::blobstore::DiskFileBlobStore;
use reth::transaction_pool::TransactionValidationTaskExecutor;
use tracing::{debug, info};

use crate::pool::ordering::WorldChainOrdering;
Expand Down

0 comments on commit 087536b

Please sign in to comment.