@fuel-ts/account 0.100.6 → 0.101.0
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.
- package/dist/account.d.ts +2 -2
- package/dist/index.global.js +20 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -6
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +15 -3
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +2 -2
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/test-utils.global.js +12 -7
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +11 -6
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +11 -6
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +14 -14
package/dist/test-utils.mjs
CHANGED
@@ -5636,6 +5636,11 @@ var TransactionResponse = class _TransactionResponse {
|
|
5636
5636
|
if (statusChange.type === "PreconfirmationSuccessStatus" || statusChange.type === "PreconfirmationFailureStatus") {
|
5637
5637
|
this.preConfirmationStatus = statusChange;
|
5638
5638
|
this.resolveStatus("preConfirmation");
|
5639
|
+
const pendingConfirmationResolvers = this.statusResolvers.get("confirmation");
|
5640
|
+
if (!pendingConfirmationResolvers) {
|
5641
|
+
this.waitingForStreamData = false;
|
5642
|
+
break;
|
5643
|
+
}
|
5639
5644
|
}
|
5640
5645
|
if (statusChange.type === "SuccessStatus" || statusChange.type === "FailureStatus") {
|
5641
5646
|
this.resolveStatus("confirmation");
|
@@ -6758,7 +6763,7 @@ var Provider = class _Provider {
|
|
6758
6763
|
* @returns A promise that resolves to the transaction cost object.
|
6759
6764
|
*
|
6760
6765
|
* @deprecated Use provider.assembleTx instead
|
6761
|
-
* Check the migration guide https://docs.fuel.network/
|
6766
|
+
* Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
|
6762
6767
|
*/
|
6763
6768
|
async getTransactionCost(transactionRequestLike, { signatureCallback, gasPrice: gasPriceParam } = {}) {
|
6764
6769
|
const txRequestClone = clone8(transactionRequestify(transactionRequestLike));
|
@@ -6902,7 +6907,7 @@ var Provider = class _Provider {
|
|
6902
6907
|
requiredBalances,
|
6903
6908
|
estimatePredicates,
|
6904
6909
|
excludeInput,
|
6905
|
-
reserveGas: reserveGas ? reserveGas.toString(10) : void 0
|
6910
|
+
reserveGas: reserveGas ? bn18(reserveGas).toString(10) : void 0
|
6906
6911
|
});
|
6907
6912
|
if (status.type === "DryRunFailureStatus") {
|
6908
6913
|
const parsedReceipts = status.receipts.map(deserializeReceipt);
|
@@ -6914,8 +6919,8 @@ var Provider = class _Provider {
|
|
6914
6919
|
if (gqlTransaction.policies?.maxFee) {
|
6915
6920
|
request.maxFee = bn18(gqlTransaction.policies.maxFee);
|
6916
6921
|
}
|
6917
|
-
if (
|
6918
|
-
request.gasLimit = bn18(gqlTransaction.scriptGasLimit);
|
6922
|
+
if (request.type === TransactionType11.Script) {
|
6923
|
+
request.gasLimit = bn18(gqlTransaction.scriptGasLimit).add(bn18(reserveGas));
|
6919
6924
|
}
|
6920
6925
|
const rawReceipts = status.receipts;
|
6921
6926
|
const chainId = await this.getChainId();
|
@@ -7865,7 +7870,7 @@ var Account = class extends AbstractAccount {
|
|
7865
7870
|
* @returns A promise that resolves to the funded transaction request.
|
7866
7871
|
*
|
7867
7872
|
* @deprecated Use provider.assembleTx instead
|
7868
|
-
* Check the migration guide https://docs.fuel.network/
|
7873
|
+
* Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
|
7869
7874
|
*/
|
7870
7875
|
async fund(request, params) {
|
7871
7876
|
const {
|
@@ -8284,7 +8289,7 @@ var Account = class extends AbstractAccount {
|
|
8284
8289
|
* @returns A promise that resolves to the transaction cost object.
|
8285
8290
|
*
|
8286
8291
|
* @deprecated Use provider.assembleTx instead
|
8287
|
-
* Check the migration guide https://docs.fuel.network/
|
8292
|
+
* Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
|
8288
8293
|
*/
|
8289
8294
|
async getTransactionCost(transactionRequestLike, { signatureCallback, quantities = [], gasPrice } = {}) {
|
8290
8295
|
const txRequestClone = clone9(transactionRequestify(transactionRequestLike));
|