@@ -13,7 +13,7 @@ use alloy::{
1313 Identity , ProviderBuilder , RootProvider ,
1414 fillers:: {
1515 BlobGasFiller , ChainIdFiller , FillProvider , GasFiller , JoinFill , NonceFiller ,
16- WalletFiller ,
16+ SimpleNonceManager , WalletFiller ,
1717 } ,
1818 } ,
1919} ;
@@ -35,19 +35,21 @@ use trevm::revm::context::BlockEnv;
3535pub type RuProvider = RootProvider < Ethereum > ;
3636
3737/// A [`Zenith`] contract instance using [`Provider`] as the provider.
38- pub type ZenithInstance < P = HostProvider > = Zenith :: ZenithInstance < ( ) , P , alloy:: network:: Ethereum > ;
38+ pub type ZenithInstance < P = HostProvider > = Zenith :: ZenithInstance < P , alloy:: network:: Ethereum > ;
3939
4040/// Type alias for the provider used to build and submit blocks to the host.
4141pub type HostProvider = FillProvider <
4242 JoinFill <
4343 JoinFill <
44- Identity ,
45- JoinFill < GasFiller , JoinFill < BlobGasFiller , JoinFill < NonceFiller , ChainIdFiller > > > ,
44+ JoinFill <
45+ JoinFill < JoinFill < Identity , BlobGasFiller > , GasFiller > ,
46+ NonceFiller < SimpleNonceManager > ,
47+ > ,
48+ ChainIdFiller ,
4649 > ,
4750 WalletFiller < EthereumWallet > ,
4851 > ,
4952 RootProvider ,
50- Ethereum ,
5153> ;
5254
5355/// Configuration for a builder running a specific rollup on a specific host
@@ -187,7 +189,12 @@ impl BuilderConfig {
187189 /// Connect to the Host rpc provider.
188190 pub async fn connect_host_provider ( & self ) -> eyre:: Result < HostProvider > {
189191 let builder_signer = self . connect_builder_signer ( ) . await ?;
190- ProviderBuilder :: new ( )
192+ ProviderBuilder :: new_with_network ( )
193+ . disable_recommended_fillers ( )
194+ . filler ( BlobGasFiller )
195+ . with_gas_estimation ( )
196+ . with_nonce_management ( SimpleNonceManager :: default ( ) )
197+ . fetch_chain_id ( )
191198 . wallet ( EthereumWallet :: from ( builder_signer) )
192199 . connect ( & self . host_rpc_url )
193200 . await
0 commit comments