@fuel-ts/account 0.0.0-rc-1895-20240328103302 → 0.0.0-rc-1895-20240328113714

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.

@@ -1541,7 +1541,7 @@ var assembleRevertError = (receipts, logs) => {
1541
1541
  const reasonHex = (0, import_math6.bn)(revertReceipt.val).toHex();
1542
1542
  switch (reasonHex) {
1543
1543
  case import_configs6.FAILED_REQUIRE_SIGNAL: {
1544
- errorMessage = `The transaction reverted because of a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1544
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1545
1545
  break;
1546
1546
  }
1547
1547
  case import_configs6.FAILED_ASSERT_EQ_SIGNAL: {
@@ -1555,10 +1555,10 @@ var assembleRevertError = (receipts, logs) => {
1555
1555
  break;
1556
1556
  }
1557
1557
  case import_configs6.FAILED_ASSERT_SIGNAL:
1558
- errorMessage = `The transaction reverted because of an "assert" statement failed to evaluate to true.`;
1558
+ errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
1559
1559
  break;
1560
1560
  case import_configs6.FAILED_TRANSFER_TO_ADDRESS_SIGNAL:
1561
- errorMessage = `The transaction reverted because missing "OutputChange"(s).`;
1561
+ errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
1562
1562
  break;
1563
1563
  default:
1564
1564
  errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;
@@ -3416,20 +3416,7 @@ var TransactionResponse = class {
3416
3416
  * @param contractsAbiMap - The contracts ABI map.
3417
3417
  */
3418
3418
  async wait(contractsAbiMap) {
3419
- const result = await this.waitForResult(contractsAbiMap);
3420
- if (result.isStatusFailure) {
3421
- const {
3422
- receipts,
3423
- logs = [],
3424
- gqlTransaction: { status }
3425
- } = result;
3426
- throw extractTxError({
3427
- receipts,
3428
- logs,
3429
- status
3430
- });
3431
- }
3432
- return result;
3419
+ return this.waitForResult(contractsAbiMap);
3433
3420
  }
3434
3421
  };
3435
3422