Skip to content

Commit

Permalink
handle rare case causes runtime to panic in submit author
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Feb 28, 2023
1 parent 38b7483 commit c1d6b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chopsticks/src/rpc/substrate/author.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const handlers: Handlers = {
})
.catch((error: TransactionValidityError) => {
logger.error({ error }, 'ExtrinsicFailed')
callback(error.toJSON())
callback(error?.toJSON() ?? error)
done(id)
})
return id
Expand Down

0 comments on commit c1d6b7f

Please sign in to comment.