@fuel-ts/account 0.0.0-rc-1895-20240328103302 → 0.0.0-rc-1895-20240328113714
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 +4 -17
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -17
- 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 +4 -17
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +4 -17
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +4 -17
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.global.js
CHANGED
@@ -39409,7 +39409,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
39409
39409
|
const reasonHex = bn(revertReceipt.val).toHex();
|
39410
39410
|
switch (reasonHex) {
|
39411
39411
|
case FAILED_REQUIRE_SIGNAL: {
|
39412
|
-
errorMessage = `The transaction reverted because
|
39412
|
+
errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify2(logs[0]) : "an error."}.`;
|
39413
39413
|
break;
|
39414
39414
|
}
|
39415
39415
|
case FAILED_ASSERT_EQ_SIGNAL: {
|
@@ -39423,10 +39423,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
39423
39423
|
break;
|
39424
39424
|
}
|
39425
39425
|
case FAILED_ASSERT_SIGNAL:
|
39426
|
-
errorMessage = `The transaction reverted because
|
39426
|
+
errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
|
39427
39427
|
break;
|
39428
39428
|
case FAILED_TRANSFER_TO_ADDRESS_SIGNAL:
|
39429
|
-
errorMessage = `The transaction reverted because missing "OutputChange"
|
39429
|
+
errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
|
39430
39430
|
break;
|
39431
39431
|
default:
|
39432
39432
|
errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;
|
@@ -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
|
|