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

package/dist/index.mjs CHANGED
@@ -1594,7 +1594,7 @@ var assembleRevertError = (receipts, logs) => {
1594
1594
  const reasonHex = bn6(revertReceipt.val).toHex();
1595
1595
  switch (reasonHex) {
1596
1596
  case FAILED_REQUIRE_SIGNAL: {
1597
- errorMessage = `The transaction reverted because of a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1597
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1598
1598
  break;
1599
1599
  }
1600
1600
  case FAILED_ASSERT_EQ_SIGNAL: {
@@ -1608,10 +1608,10 @@ var assembleRevertError = (receipts, logs) => {
1608
1608
  break;
1609
1609
  }
1610
1610
  case FAILED_ASSERT_SIGNAL:
1611
- errorMessage = `The transaction reverted because of an "assert" statement failed to evaluate to true.`;
1611
+ errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
1612
1612
  break;
1613
1613
  case FAILED_TRANSFER_TO_ADDRESS_SIGNAL2:
1614
- errorMessage = `The transaction reverted because missing "OutputChange"(s).`;
1614
+ errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
1615
1615
  break;
1616
1616
  default:
1617
1617
  errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;