[bug] update parse_new_tx

This commit is contained in:
Sosthene 2025-08-23 16:02:06 +02:00
parent 1a3a2dbef1
commit 7100eda272

View File

@ -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);