@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.global.js +3 -16
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -16
- package/dist/index.mjs.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/test-utils.global.js +3 -16
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +3 -16
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +3 -16
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
package/dist/test-utils.js
CHANGED
@@ -1568,8 +1568,8 @@ var assembleRevertError = (receipts, logs) => {
|
|
1568
1568
|
};
|
1569
1569
|
var extractTxError = (params) => {
|
1570
1570
|
const { receipts, status, logs } = params;
|
1571
|
-
const
|
1572
|
-
let err = status?.type === "FailureStatus" &&
|
1571
|
+
const isPanic = receipts.some(({ type }) => type === import_transactions5.ReceiptType.Panic);
|
1572
|
+
let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
|
1573
1573
|
err += `
|
1574
1574
|
|
1575
1575
|
logs: ${JSON.stringify(logs, null, 2)}`;
|
@@ -3416,20 +3416,7 @@ var TransactionResponse = class {
|
|
3416
3416
|
* @param contractsAbiMap - The contracts ABI map.
|
3417
3417
|
*/
|
3418
3418
|
async wait(contractsAbiMap) {
|
3419
|
-
|
3420
|
-
if (result.isStatusFailure) {
|
3421
|
-
const {
|
3422
|
-
receipts,
|
3423
|
-
logs = [],
|
3424
|
-
gqlTransaction: { status }
|
3425
|
-
} = result;
|
3426
|
-
throw extractTxError({
|
3427
|
-
receipts,
|
3428
|
-
logs,
|
3429
|
-
status
|
3430
|
-
});
|
3431
|
-
}
|
3432
|
-
return result;
|
3419
|
+
return this.waitForResult(contractsAbiMap);
|
3433
3420
|
}
|
3434
3421
|
};
|
3435
3422
|
|