Skip to content

Commit

Permalink
Updated error handling with correct event name
Browse files Browse the repository at this point in the history
  • Loading branch information
djordjekovac committed Jan 12, 2024
1 parent 812b660 commit 824b2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/protocols/common/submit-commit-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class SubmitCommitCommand extends Command {
} else {
msgBase = 'Node has already submitted commit. Finishing';
this.operationIdService.emitChangeEvent(
OPERATION_ID_STATUS.COMMIT_PROOF.SUBMIT_COMMIT_SEND_TX_ERROR,
ERROR_TYPE.COMMIT_PROOF.SUBMIT_COMMIT_SEND_TX_ERROR,
sendSubmitCommitTransactionOperationId,
blockchain,
msgBase,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/protocols/common/submit-proofs-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class SubmitProofsCommand extends Command {
} else {
msgBase = 'Node has already sent proof. Finishing';
this.operationIdService.emitChangeEvent(
OPERATION_ID_STATUS.COMMIT_PROOF.SUBMIT_COMMIT_SEND_TX_ERROR,
ERROR_TYPE.COMMIT_PROOF.SUBMIT_PROOFS_SEND_TX_ERROR,
sendSubmitProofsTransactionOperationId,
blockchain,
msgBase,
Expand Down

0 comments on commit 824b2de

Please sign in to comment.