@argonprotocol/mainchain 1.4.9-dev.0147366f → 1.4.9-dev.083932bc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser/index.js CHANGED
@@ -338,7 +338,7 @@ var TxResult = class {
338
338
  this.isBroadcast = true;
339
339
  if (result2.internalError) this.submissionError = result2.internalError;
340
340
  }
341
- if (status.isInBlock) {
341
+ if (status.isInBlock && txIndex !== void 0) {
342
342
  try {
343
343
  const pendingInBlock = createPendingInBlock(
344
344
  Uint8Array.from(status.asInBlock),
@@ -355,6 +355,23 @@ var TxResult = class {
355
355
  this.submissionError = error;
356
356
  }
357
357
  }
358
+ if (status.isRetracted) {
359
+ const retractedHash = Uint8Array.from(status.asRetracted);
360
+ if (__privateGet(this, _pendingInBlock) && u8aEq(__privateGet(this, _pendingInBlock).blockHash, retractedHash)) {
361
+ __privateSet(this, _pendingInBlock, void 0);
362
+ }
363
+ if (this.blockHash && u8aEq(this.blockHash, retractedHash)) {
364
+ this.events = [];
365
+ this.extrinsicError = void 0;
366
+ this.extrinsicIndex = void 0;
367
+ this.batchInterruptedIndex = void 0;
368
+ this.blockHash = void 0;
369
+ this.blockNumber = void 0;
370
+ this.finalFee = void 0;
371
+ this.finalFeeTip = void 0;
372
+ this.updateProgress();
373
+ }
374
+ }
358
375
  if (status.isUsurped) {
359
376
  __privateSet(this, _pendingInBlock, void 0);
360
377
  this.submissionError = new TxSubmissionError(