Skip to content

Commit

Permalink
fix(runner): handle unsafe-reset-all as tendermint subcommand (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman authored Sep 8, 2022
1 parent a04e22c commit 0e2b891
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions runner/lib/tasks/testnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,19 @@ export const makeTasks = ({
);

await childProcessDone(
printerSpawn(sdkBinaries.cosmosChain, ['unsafe-reset-all'], {
stdio,
}),
printerSpawn(
sdkBinaries.cosmosChain,
['tendermint', 'unsafe-reset-all'],
{
stdio,
},
),
).catch(() =>
childProcessDone(
printerSpawn(sdkBinaries.cosmosChain, ['unsafe-reset-all'], {
stdio,
}),
),
);

const configPath = joinPath(chainStateDir, 'config', 'config.toml');
Expand Down

0 comments on commit 0e2b891

Please sign in to comment.