diff --git a/package-lock.json b/package-lock.json index c4bc3b26fd..52c9e6913a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "origintrail_node", - "version": "6.0.18", + "version": "6.0.18+hotfix.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "origintrail_node", - "version": "6.0.18", + "version": "6.0.18+hotfix.1", "license": "ISC", "dependencies": { "@comunica/query-sparql": "^2.4.3", diff --git a/package.json b/package.json index 11eec6e27d..3880e01230 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "origintrail_node", - "version": "6.0.18", + "version": "6.0.18+hotfix.1", "description": "OTNode V6", "main": "index.js", "type": "module", diff --git a/src/commands/protocols/common/submit-commit-command.js b/src/commands/protocols/common/submit-commit-command.js index e4871b4465..e8534b0ee2 100644 --- a/src/commands/protocols/common/submit-commit-command.js +++ b/src/commands/protocols/common/submit-commit-command.js @@ -71,7 +71,10 @@ class SubmitCommitCommand extends Command { epoch, stateIndex, (result) => { - if (result?.error && !result.error.includes('NodeAlreadySubmittedCommit')) { + if ( + result?.error && + !result.error.message.includes('NodeAlreadySubmittedCommit') + ) { reject(result.error); } resolve(); diff --git a/src/commands/protocols/common/submit-proofs-command.js b/src/commands/protocols/common/submit-proofs-command.js index e59e4ace28..7e26edf5c5 100644 --- a/src/commands/protocols/common/submit-proofs-command.js +++ b/src/commands/protocols/common/submit-proofs-command.js @@ -132,7 +132,7 @@ class SubmitProofsCommand extends Command { leaf, stateIndex, (result) => { - if (result?.error && !result.error.includes('NodeAlreadyRewarded')) { + if (result?.error && !result.error.message.includes('NodeAlreadyRewarded')) { reject(result.error); } resolve();