@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.mjs
CHANGED
@@ -1594,7 +1594,7 @@ var assembleRevertError = (receipts, logs) => {
|
|
1594
1594
|
const reasonHex = bn6(revertReceipt.val).toHex();
|
1595
1595
|
switch (reasonHex) {
|
1596
1596
|
case FAILED_REQUIRE_SIGNAL: {
|
1597
|
-
errorMessage = `The transaction reverted because
|
1597
|
+
errorMessage = `The transaction reverted because a "require" statement has thrown ${logs.length ? stringify(logs[0]) : "an error."}.`;
|
1598
1598
|
break;
|
1599
1599
|
}
|
1600
1600
|
case FAILED_ASSERT_EQ_SIGNAL: {
|
@@ -1608,10 +1608,10 @@ var assembleRevertError = (receipts, logs) => {
|
|
1608
1608
|
break;
|
1609
1609
|
}
|
1610
1610
|
case FAILED_ASSERT_SIGNAL:
|
1611
|
-
errorMessage = `The transaction reverted because
|
1611
|
+
errorMessage = `The transaction reverted because an "assert" statement failed to evaluate to true.`;
|
1612
1612
|
break;
|
1613
1613
|
case FAILED_TRANSFER_TO_ADDRESS_SIGNAL2:
|
1614
|
-
errorMessage = `The transaction reverted because missing "OutputChange"
|
1614
|
+
errorMessage = `The transaction reverted because it's missing an "OutputChange".`;
|
1615
1615
|
break;
|
1616
1616
|
default:
|
1617
1617
|
errorMessage = `The transaction reverted with an unknown reason: ${revertReceipt.val}`;
|
@@ -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
|
|