@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.mjs
CHANGED
@@ -1554,8 +1554,8 @@ var assembleRevertError = (receipts, logs) => {
|
|
1554
1554
|
};
|
1555
1555
|
var extractTxError = (params) => {
|
1556
1556
|
const { receipts, status, logs } = params;
|
1557
|
-
const
|
1558
|
-
let err = status?.type === "FailureStatus" &&
|
1557
|
+
const isPanic = receipts.some(({ type }) => type === ReceiptType3.Panic);
|
1558
|
+
let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
|
1559
1559
|
err += `
|
1560
1560
|
|
1561
1561
|
logs: ${JSON.stringify(logs, null, 2)}`;
|
@@ -3402,20 +3402,7 @@ var TransactionResponse = class {
|
|
3402
3402
|
* @param contractsAbiMap - The contracts ABI map.
|
3403
3403
|
*/
|
3404
3404
|
async wait(contractsAbiMap) {
|
3405
|
-
|
3406
|
-
if (result.isStatusFailure) {
|
3407
|
-
const {
|
3408
|
-
receipts,
|
3409
|
-
logs = [],
|
3410
|
-
gqlTransaction: { status }
|
3411
|
-
} = result;
|
3412
|
-
throw extractTxError({
|
3413
|
-
receipts,
|
3414
|
-
logs,
|
3415
|
-
status
|
3416
|
-
});
|
3417
|
-
}
|
3418
|
-
return result;
|
3405
|
+
return this.waitForResult(contractsAbiMap);
|
3419
3406
|
}
|
3420
3407
|
};
|
3421
3408
|
|