@fuel-ts/account 0.0.0-rc-1895-20240327220629 → 0.0.0-rc-1895-20240328110906

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
@@ -1752,8 +1752,8 @@ var assembleRevertError = (receipts, logs) => {
1752
1752
  };
1753
1753
  var extractTxError = (params) => {
1754
1754
  const { receipts, status, logs } = params;
1755
- const wasPanic = receipts.some(({ type }) => type === import_transactions5.ReceiptType.Panic);
1756
- let err = status?.type === "FailureStatus" && wasPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
1755
+ const isPanic = receipts.some(({ type }) => type === import_transactions5.ReceiptType.Panic);
1756
+ let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
1757
1757
  err += `
1758
1758
 
1759
1759
  logs: ${JSON.stringify(logs, null, 2)}`;
@@ -3659,20 +3659,7 @@ var TransactionResponse = class {
3659
3659
  * @param contractsAbiMap - The contracts ABI map.
3660
3660
  */
3661
3661
  async wait(contractsAbiMap) {
3662
- const result = await this.waitForResult(contractsAbiMap);
3663
- if (result.isStatusFailure) {
3664
- const {
3665
- receipts,
3666
- logs = [],
3667
- gqlTransaction: { status }
3668
- } = result;
3669
- throw extractTxError({
3670
- receipts,
3671
- logs,
3672
- status
3673
- });
3674
- }
3675
- return result;
3662
+ return this.waitForResult(contractsAbiMap);
3676
3663
  }
3677
3664
  };
3678
3665