From fe17d65851e85f22891d95bee1eb822bc9d94b65 Mon Sep 17 00:00:00 2001 From: 0xOsiris Date: Fri, 13 Dec 2024 10:45:45 -0700 Subject: [PATCH] chore: fmt --- world-chain-builder/crates/world/bin/src/main.rs | 8 ++++++-- world-chain-builder/crates/world/rpc/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/world-chain-builder/crates/world/bin/src/main.rs b/world-chain-builder/crates/world/bin/src/main.rs index 7f87ef3..e774431 100644 --- a/world-chain-builder/crates/world/bin/src/main.rs +++ b/world-chain-builder/crates/world/bin/src/main.rs @@ -36,10 +36,14 @@ fn main() { .extend_rpc_modules(move |ctx| { let provider = ctx.provider().clone(); let pool = ctx.pool().clone(); - let sequencer_client = builder_args.rollup_args.sequencer_http.map(SequencerClient::new); + let sequencer_client = builder_args + .rollup_args + .sequencer_http + .map(SequencerClient::new); let eth_api_ext = WorldChainEthApiExt::new(pool, provider, sequencer_client); // Remove the `eth_sendRawTransaction` method from the configured modules - ctx.modules.remove_method_from_configured(&"eth_sendRawTransaction"); + ctx.modules + .remove_method_from_configured(&"eth_sendRawTransaction"); // Merge the `eth_sendRawTransaction` and `eth_sendRawTransactionConditional` RPC methods ctx.modules.merge_configured(eth_api_ext.into_rpc())?; Ok(()) diff --git a/world-chain-builder/crates/world/rpc/src/lib.rs b/world-chain-builder/crates/world/rpc/src/lib.rs index a0b24f7..6066676 100644 --- a/world-chain-builder/crates/world/rpc/src/lib.rs +++ b/world-chain-builder/crates/world/rpc/src/lib.rs @@ -25,5 +25,5 @@ pub trait EthTransactionsExt { pub struct WorldChainEthApiExt { pool: Pool, client: Client, - sequencer_client: Option + sequencer_client: Option, }