@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.

@@ -39409,7 +39409,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39409
39409
  const reasonHex = bn(revertReceipt.val).toHex();
39410
39410
  switch (reasonHex) {
39411
39411
  case FAILED_REQUIRE_SIGNAL: {
39412
- errorMessage = `The transaction reverted because of a "require" statement has thrown ${logs.length ? stringify2(logs[0]) : "an error."}.`;
39412
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify2(logs[0]) : "an error."}.`;
39413
39413
  break;
39414
39414
  }
39415
39415
  case FAILED_ASSERT_EQ_SIGNAL: {
@@ -39423,10 +39423,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
39423
39423
  break;
39424
39424
  }
39425
39425
  case FAILED_ASSERT_SIGNAL:
39426
- errorMessage = `The transaction reverted because of an "assert" statement failed to evaluate to true.`;
39426
+ errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
39427
39427
  break;
39428
39428
  case FAILED_TRANSFER_TO_ADDRESS_SIGNAL:
39429
- errorMessage = `The transaction reverted because missing "OutputChange"(s).`;
39429
+ errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
39430
39430
  break;
39431
39431
  default:
39432
39432
  errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;
@@ -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