[bug] update parse_new_tx
This commit is contained in:
parent
1a3a2dbef1
commit
7100eda272
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user