Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOsiris committed Dec 13, 2024
1 parent 612ccba commit fe17d65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions world-chain-builder/crates/world/bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down
2 changes: 1 addition & 1 deletion world-chain-builder/crates/world/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ pub trait EthTransactionsExt {
pub struct WorldChainEthApiExt<Pool, Client> {
pool: Pool,
client: Client,
sequencer_client: Option<SequencerClient>
sequencer_client: Option<SequencerClient>,
}

0 comments on commit fe17d65

Please sign in to comment.