@fuel-ts/account 0.0.0-rc-1895-20240327220629 → 0.0.0-rc-1895-20240328110906

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -39436,8 +39436,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39436
39436
  };
39437
39437
  var extractTxError = (params) => {
39438
39438
  const { receipts, status, logs } = params;
39439
- const wasPanic = receipts.some(({ type: type3 }) => type3 === ReceiptType.Panic);
39440
- let err = status?.type === "FailureStatus" && wasPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
39439
+ const isPanic = receipts.some(({ type: type3 }) => type3 === ReceiptType.Panic);
39440
+ let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
39441
39441
  err += `
39442
39442
 
39443
39443
  logs: ${JSON.stringify(logs, null, 2)}`;
@@ -41291,20 +41291,7 @@ receipts: ${JSON.stringify(receipts, null, 2)}`;
41291
41291
  * @param contractsAbiMap - The contracts ABI map.
41292
41292
  */
41293
41293
  async wait(contractsAbiMap) {
41294
- const result = await this.waitForResult(contractsAbiMap);
41295
- if (result.isStatusFailure) {
41296
- const {
41297
- receipts,
41298
- logs = [],
41299
- gqlTransaction: { status }
41300
- } = result;
41301
- throw extractTxError({
41302
- receipts,
41303
- logs,
41304
- status
41305
- });
41306
- }
41307
- return result;
41294
+ return this.waitForResult(contractsAbiMap);
41308
41295
  }
41309
41296
  };
41310
41297