11//! Test utilities for testing builder tasks
2- use crate :: {
3- config:: BuilderConfig ,
4- constants:: { PECORINO_CHAIN_ID , PECORINO_HOST_CHAIN_ID } ,
5- tasks:: block:: PecorinoBlockEnv ,
6- } ;
2+ use crate :: { config:: BuilderConfig , tasks:: block:: PecorinoBlockEnv } ;
73use alloy:: {
84 consensus:: { SignableTransaction , TxEip1559 , TxEnvelope } ,
95 primitives:: { Address , FixedBytes , TxKind , U256 } ,
@@ -25,8 +21,8 @@ use std::{
2521/// Sets up a block builder with test values
2622pub fn setup_test_config ( ) -> Result < BuilderConfig > {
2723 let config = BuilderConfig {
28- host_chain_id : PECORINO_HOST_CHAIN_ID ,
29- ru_chain_id : PECORINO_CHAIN_ID ,
24+ host_chain_id : signet_constants :: pecorino :: HOST_CHAIN_ID ,
25+ ru_chain_id : signet_constants :: pecorino :: RU_CHAIN_ID ,
3026 host_rpc_url : "https://host-rpc.pecorino.signet.sh" . into ( ) ,
3127 ru_rpc_url : "https://rpc.pecorino.signet.sh" . into ( ) ,
3228 tx_broadcast_urls : vec ! [ "http://localhost:9000" . into( ) ] ,
@@ -64,7 +60,7 @@ pub fn new_signed_tx(
6460 mpfpg : u128 ,
6561) -> Result < TxEnvelope > {
6662 let tx = TxEip1559 {
67- chain_id : PECORINO_CHAIN_ID ,
63+ chain_id : signet_constants :: pecorino :: RU_CHAIN_ID ,
6864 nonce,
6965 max_fee_per_gas : 50_000 ,
7066 max_priority_fee_per_gas : mpfpg,
0 commit comments