diff --git a/src/services/service.ts b/src/services/service.ts index 8bef331..65fc16b 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -559,7 +559,7 @@ export default class Services { const newTip = this.sdkClient.get_txid(parsedMsg.transaction); console.log('Transaction', newTip, 'spends the tip of process', processId); // We take the data out of the output - const newStateId = this.sdkClient.get_new_state_id(parsedMsg.transaction); + const newStateId = this.sdkClient.get_opreturn(parsedMsg.transaction); console.log('newStateId:', newStateId); // We update the relevant process const updatedProcess = this.sdkClient.process_commit_new_state(process, newStateId, newTip); @@ -573,7 +573,7 @@ export default class Services { } try { - const parsedTx = this.sdkClient.parse_new_tx(parsedMsg.transaction, 0, membersList); + const parsedTx = this.sdkClient.parse_new_tx(newTxMsg, 0, membersList); if (parsedTx) { try { await this.handleApiReturn(parsedTx);