Skip to content

Commit 49188fa

Browse files
committed
fmt
1 parent 3883432 commit 49188fa

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

.github/workflows/frontier-rpc-tests.yml

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
working-directory: frontier/ts-tests
4444
run: npm install --frozen
4545

46+
- name: Build contracts
47+
working-directory: frontier/ts-tests
48+
run: npm run build
49+
4650
- name: Run frontier RPC tests
4751
working-directory: frontier/ts-tests
4852
run: npm run test

bin/collator/src/local/service.rs

+17-13
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub fn start_node(
376376
overrides: overrides.clone(),
377377
enable_evm_rpc: true, // enable EVM RPC for dev node by default
378378
#[cfg(feature = "manual-seal")]
379-
command_sink: None
379+
command_sink: None,
380380
};
381381

382382
crate::rpc::create_full(
@@ -700,26 +700,30 @@ pub fn start_node(config: Configuration) -> Result<TaskManager, ServiceError> {
700700
let slot_duration = sc_consensus_aura::slot_duration(&*client)?;
701701

702702
#[cfg(feature = "manual-seal")]
703-
let aura = sc_consensus_manual_seal::run_manual_seal(sc_consensus_manual_seal::ManualSealParams {
704-
block_import,
705-
env: proposer_factory,
706-
client: client.clone(),
707-
pool: transaction_pool.clone(),
708-
commands_stream,
709-
select_chain,
710-
consensus_data_provider: Some(Box::new(sc_consensus_manual_seal::consensus::aura::AuraConsensusDataProvider::new(client.clone()))),
711-
create_inherent_data_providers: move |_, ()| {
712-
async move {
703+
let aura = sc_consensus_manual_seal::run_manual_seal(
704+
sc_consensus_manual_seal::ManualSealParams {
705+
block_import,
706+
env: proposer_factory,
707+
client: client.clone(),
708+
pool: transaction_pool.clone(),
709+
commands_stream,
710+
select_chain,
711+
consensus_data_provider: Some(Box::new(
712+
sc_consensus_manual_seal::consensus::aura::AuraConsensusDataProvider::new(
713+
client.clone(),
714+
),
715+
)),
716+
create_inherent_data_providers: move |_, ()| async move {
713717
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();
714718
let slot =
715719
sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
716720
*timestamp,
717721
slot_duration.clone(),
718722
);
719723
Ok((slot, timestamp))
720-
}
724+
},
721725
},
722-
});
726+
);
723727

724728
#[cfg(not(feature = "manual-seal"))]
725729
let aura = sc_consensus_aura::start_aura::<AuraPair, _, _, _, _, _, _, _, _, _, _>(

bin/collator/src/rpc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ pub struct FullDeps<C, P, A: ChainApi> {
136136
pub enable_evm_rpc: bool,
137137
/// Command sink for manual sealing
138138
#[cfg(feature = "manual-seal")]
139-
pub command_sink: Option<futures::channel::mpsc::Sender<sc_consensus_manual_seal::EngineCommand<Hash>>>,
139+
pub command_sink:
140+
Option<futures::channel::mpsc::Sender<sc_consensus_manual_seal::EngineCommand<Hash>>>,
140141
}
141142

142143
/// Instantiate all RPC extensions and Tracing RPC.

0 commit comments

Comments
 (0)