chore(Transaction): fix cxStatus on confirmation

staking
neeboo 5 years ago
parent 2e3bd054b8
commit ffbbffb07d
  1. 2
      packages/harmony-transaction/src/transaction.ts

@ -654,11 +654,13 @@ class Transaction {
if (res.isResult() && res.result !== null) {
this.emitCxReceipt(res.result);
this.cxStatus = TxStatus.CONFIRMED;
return true;
} else {
const currentBlock = await this.getBlockNumber(toShardID);
this.cxBlockNumbers.push('0x' + currentBlock.toString('hex'));
this.cxConfirmationCheck += 1;
this.cxStatus = TxStatus.REJECTED;
return false;
}
}

Loading…
Cancel
Save