@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/index.mjs
CHANGED
@@ -1621,8 +1621,8 @@ var assembleRevertError = (receipts, logs) => {
|
|
1621
1621
|
};
|
1622
1622
|
var extractTxError = (params) => {
|
1623
1623
|
const { receipts, status, logs } = params;
|
1624
|
-
const
|
1625
|
-
let err = status?.type === "FailureStatus" &&
|
1624
|
+
const isPanic = receipts.some(({ type }) => type === ReceiptType3.Panic);
|
1625
|
+
let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
|
1626
1626
|
err += `
|
1627
1627
|
|
1628
1628
|
logs: ${JSON.stringify(logs, null, 2)}`;
|
@@ -3528,20 +3528,7 @@ var TransactionResponse = class {
|
|
3528
3528
|
* @param contractsAbiMap - The contracts ABI map.
|
3529
3529
|
*/
|
3530
3530
|
async wait(contractsAbiMap) {
|
3531
|
-
|
3532
|
-
if (result.isStatusFailure) {
|
3533
|
-
const {
|
3534
|
-
receipts,
|
3535
|
-
logs = [],
|
3536
|
-
gqlTransaction: { status }
|
3537
|
-
} = result;
|
3538
|
-
throw extractTxError({
|
3539
|
-
receipts,
|
3540
|
-
logs,
|
3541
|
-
status
|
3542
|
-
});
|
3543
|
-
}
|
3544
|
-
return result;
|
3531
|
+
return this.waitForResult(contractsAbiMap);
|
3545
3532
|
}
|
3546
3533
|
};
|
3547
3534
|
|