@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.js CHANGED
@@ -1725,7 +1725,7 @@ var assembleRevertError = (receipts, logs) => {
1725
1725
  const reasonHex = (0, import_math6.bn)(revertReceipt.val).toHex();
1726
1726
  switch (reasonHex) {
1727
1727
  case import_configs6.FAILED_REQUIRE_SIGNAL: {
1728
- errorMessage = `The transaction reverted because of a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1728
+ errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
1729
1729
  break;
1730
1730
  }
1731
1731
  case import_configs6.FAILED_ASSERT_EQ_SIGNAL: {
@@ -1739,10 +1739,10 @@ var assembleRevertError = (receipts, logs) => {
1739
1739
  break;
1740
1740
  }
1741
1741
  case import_configs6.FAILED_ASSERT_SIGNAL:
1742
- errorMessage = `The transaction reverted because of an "assert" statement failed to evaluate to true.`;
1742
+ errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
1743
1743
  break;
1744
1744
  case import_configs6.FAILED_TRANSFER_TO_ADDRESS_SIGNAL:
1745
- errorMessage = `The transaction reverted because missing "OutputChange"(s).`;
1745
+ errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
1746
1746
  break;
1747
1747
  default:
1748
1748
  errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;