Skip to content

Commit

Permalink
[api-cli] Avoid infinite wait on failed txs (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 authored Feb 28, 2024
1 parent add68d0 commit 21d9281
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api-cli/src/runcli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ async function makeTx ({ api, fn, log }: CallInfo): Promise<(() => void) | Hash>
if (noWait || result.isInBlock || result.isFinalized) {
process.exit(0);
}

if (result.isError) {
process.exit(1);
}
});
}

Expand Down

0 comments on commit 21d9281

Please sign in to comment.