@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.
@@ -5651,6 +5651,11 @@ var TransactionResponse = class _TransactionResponse {
5651
5651
  if (statusChange.type === "PreconfirmationSuccessStatus" || statusChange.type === "PreconfirmationFailureStatus") {
5652
5652
  this.preConfirmationStatus = statusChange;
5653
5653
  this.resolveStatus("preConfirmation");
5654
+ const pendingConfirmationResolvers = this.statusResolvers.get("confirmation");
5655
+ if (!pendingConfirmationResolvers) {
5656
+ this.waitingForStreamData = false;
5657
+ break;
5658
+ }
5654
5659
  }
5655
5660
  if (statusChange.type === "SuccessStatus" || statusChange.type === "FailureStatus") {
5656
5661
  this.resolveStatus("confirmation");
@@ -6773,7 +6778,7 @@ var Provider = class _Provider {
6773
6778
  * @returns A promise that resolves to the transaction cost object.
6774
6779
  *
6775
6780
  * @deprecated Use provider.assembleTx instead
6776
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
6781
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
6777
6782
  */
6778
6783
  async getTransactionCost(transactionRequestLike, { signatureCallback, gasPrice: gasPriceParam } = {}) {
6779
6784
  const txRequestClone = (0, import_ramda8.clone)(transactionRequestify(transactionRequestLike));
@@ -6917,7 +6922,7 @@ var Provider = class _Provider {
6917
6922
  requiredBalances,
6918
6923
  estimatePredicates,
6919
6924
  excludeInput,
6920
- reserveGas: reserveGas ? reserveGas.toString(10) : void 0
6925
+ reserveGas: reserveGas ? (0, import_math20.bn)(reserveGas).toString(10) : void 0
6921
6926
  });
6922
6927
  if (status.type === "DryRunFailureStatus") {
6923
6928
  const parsedReceipts = status.receipts.map(deserializeReceipt);
@@ -6929,8 +6934,8 @@ var Provider = class _Provider {
6929
6934
  if (gqlTransaction.policies?.maxFee) {
6930
6935
  request.maxFee = (0, import_math20.bn)(gqlTransaction.policies.maxFee);
6931
6936
  }
6932
- if (gqlTransaction.scriptGasLimit) {
6933
- request.gasLimit = (0, import_math20.bn)(gqlTransaction.scriptGasLimit);
6937
+ if (request.type === import_transactions25.TransactionType.Script) {
6938
+ request.gasLimit = (0, import_math20.bn)(gqlTransaction.scriptGasLimit).add((0, import_math20.bn)(reserveGas));
6934
6939
  }
6935
6940
  const rawReceipts = status.receipts;
6936
6941
  const chainId = await this.getChainId();
@@ -7880,7 +7885,7 @@ var Account = class extends AbstractAccount {
7880
7885
  * @returns A promise that resolves to the funded transaction request.
7881
7886
  *
7882
7887
  * @deprecated Use provider.assembleTx instead
7883
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
7888
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
7884
7889
  */
7885
7890
  async fund(request, params) {
7886
7891
  const {
@@ -8299,7 +8304,7 @@ var Account = class extends AbstractAccount {
8299
8304
  * @returns A promise that resolves to the transaction cost object.
8300
8305
  *
8301
8306
  * @deprecated Use provider.assembleTx instead
8302
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
8307
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
8303
8308
  */
8304
8309
  async getTransactionCost(transactionRequestLike, { signatureCallback, quantities = [], gasPrice } = {}) {
8305
8310
  const txRequestClone = (0, import_ramda9.clone)(transactionRequestify(transactionRequestLike));