Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix Try-Runtime (#3725)
Browse files Browse the repository at this point in the history
* compile try-runtime

* cargo fmt lol
  • Loading branch information
ferrell-code authored Aug 26, 2021
1 parent d8d5ce2 commit 732348c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ pub fn run() -> Result<()> {
if chain_spec.is_kusama() {
return runner.async_run(|config| {
Ok((
cmd.run::<service::kusama_runtime::Block, service::KusamaExecutor>(config)
.map_err(Error::SubstrateCli),
cmd.run::<service::kusama_runtime::Block, service::KusamaExecutorDispatch>(
config,
)
.map_err(Error::SubstrateCli),
task_manager,
))
})
Expand All @@ -431,7 +433,7 @@ pub fn run() -> Result<()> {
if chain_spec.is_westend() {
return runner.async_run(|config| {
Ok((
cmd.run::<service::westend_runtime::Block, service::WestendExecutor>(
cmd.run::<service::westend_runtime::Block, service::WestendExecutorDispatch>(
config,
)
.map_err(Error::SubstrateCli),
Expand All @@ -442,8 +444,10 @@ pub fn run() -> Result<()> {
// else we assume it is polkadot.
runner.async_run(|config| {
Ok((
cmd.run::<service::polkadot_runtime::Block, service::PolkadotExecutor>(config)
.map_err(Error::SubstrateCli),
cmd.run::<service::polkadot_runtime::Block, service::PolkadotExecutorDispatch>(
config,
)
.map_err(Error::SubstrateCli),
task_manager,
))
})
Expand Down

0 comments on commit 732348c

Please sign in to comment.