1
1
//! 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 } ;
7
3
use alloy:: {
8
4
consensus:: { SignableTransaction , TxEip1559 , TxEnvelope } ,
9
5
primitives:: { Address , FixedBytes , TxKind , U256 } ,
@@ -25,8 +21,8 @@ use std::{
25
21
/// Sets up a block builder with test values
26
22
pub fn setup_test_config ( ) -> Result < BuilderConfig > {
27
23
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 ,
30
26
host_rpc_url : "https://host-rpc.pecorino.signet.sh" . into ( ) ,
31
27
ru_rpc_url : "https://rpc.pecorino.signet.sh" . into ( ) ,
32
28
tx_broadcast_urls : vec ! [ "http://localhost:9000" . into( ) ] ,
@@ -64,7 +60,7 @@ pub fn new_signed_tx(
64
60
mpfpg : u128 ,
65
61
) -> Result < TxEnvelope > {
66
62
let tx = TxEip1559 {
67
- chain_id : PECORINO_CHAIN_ID ,
63
+ chain_id : signet_constants :: pecorino :: RU_CHAIN_ID ,
68
64
nonce,
69
65
max_fee_per_gas : 50_000 ,
70
66
max_priority_fee_per_gas : mpfpg,
0 commit comments