@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.global.js
CHANGED
@@ -39436,8 +39436,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
39436
39436
|
};
|
39437
39437
|
var extractTxError = (params) => {
|
39438
39438
|
const { receipts, status, logs } = params;
|
39439
|
-
const
|
39440
|
-
let err = status?.type === "FailureStatus" &&
|
39439
|
+
const isPanic = receipts.some(({ type: type3 }) => type3 === ReceiptType.Panic);
|
39440
|
+
let err = status?.type === "FailureStatus" && isPanic ? assemblePanicError(status) : assembleRevertError(receipts, logs);
|
39441
39441
|
err += `
|
39442
39442
|
|
39443
39443
|
logs: ${JSON.stringify(logs, null, 2)}`;
|
@@ -41291,20 +41291,7 @@ receipts: ${JSON.stringify(receipts, null, 2)}`;
|
|
41291
41291
|
* @param contractsAbiMap - The contracts ABI map.
|
41292
41292
|
*/
|
41293
41293
|
async wait(contractsAbiMap) {
|
41294
|
-
|
41295
|
-
if (result.isStatusFailure) {
|
41296
|
-
const {
|
41297
|
-
receipts,
|
41298
|
-
logs = [],
|
41299
|
-
gqlTransaction: { status }
|
41300
|
-
} = result;
|
41301
|
-
throw extractTxError({
|
41302
|
-
receipts,
|
41303
|
-
logs,
|
41304
|
-
status
|
41305
|
-
});
|
41306
|
-
}
|
41307
|
-
return result;
|
41294
|
+
return this.waitForResult(contractsAbiMap);
|
41308
41295
|
}
|
41309
41296
|
};
|
41310
41297
|
|