@fuel-ts/account 0.0.0-rc-1895-20240328110906 → 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.

@@ -1527,7 +1527,7 @@ var assembleRevertError = (receipts, logs) => {
1527
1527
  const reasonHex = bn6(revertReceipt.val).toHex();
1528
1528
  switch (reasonHex) {
1529
1529
  case FAILED_REQUIRE_SIGNAL: {
1530
- errorMessage = `The transaction reverted because of a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1530
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1531
1531
  break;
1532
1532
  }
1533
1533
  case FAILED_ASSERT_EQ_SIGNAL: {
@@ -1541,10 +1541,10 @@ var assembleRevertError = (receipts, logs) => {
1541
1541
  break;
1542
1542
  }
1543
1543
  case FAILED_ASSERT_SIGNAL:
1544
- errorMessage = `The transaction reverted because of an "assert" statement failed to evaluate to true.`;
1544
+ errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
1545
1545
  break;
1546
1546
  case FAILED_TRANSFER_TO_ADDRESS_SIGNAL2:
1547
- errorMessage = `The transaction reverted because missing "OutputChange"(s).`;
1547
+ errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
1548
1548
  break;
1549
1549
  default:
1550
1550
  errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;