@fuel-ts/account 0.100.5 → 0.100.6

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/index.mjs CHANGED
@@ -8328,6 +8328,19 @@ var assembleTransactionSummaryFromJson = /* @__PURE__ */ __name(async (opts) =>
8328
8328
  }, "assembleTransactionSummaryFromJson");
8329
8329
 
8330
8330
  // src/providers/utils/transaction-response-serialization.ts
8331
+ var serializeTransactionResponseJson = /* @__PURE__ */ __name(async (response) => {
8332
+ const { id, status, abis, request: request2, provider, gqlTransaction, preConfirmationStatus } = response;
8333
+ return {
8334
+ id,
8335
+ status,
8336
+ abis,
8337
+ requestJson: request2 ? JSON.stringify(request2.toJSON()) : void 0,
8338
+ providerUrl: provider.url,
8339
+ providerCache: await serializeProviderCache(provider),
8340
+ gqlTransaction,
8341
+ preConfirmationStatus
8342
+ };
8343
+ }, "serializeTransactionResponseJson");
8331
8344
  var deserializeTransactionResponseJson = /* @__PURE__ */ __name((json) => {
8332
8345
  const {
8333
8346
  id,
@@ -9047,7 +9060,7 @@ var Account = class extends AbstractAccount {
9047
9060
  transactionRequest,
9048
9061
  params
9049
9062
  );
9050
- return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : deserializeTransactionResponseJson(transaction);
9063
+ return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : transaction;
9051
9064
  }
9052
9065
  if (estimateTxDependencies) {
9053
9066
  await this.provider.estimateTxDependencies(transactionRequest);
@@ -13954,6 +13967,7 @@ export {
13954
13967
  deserializeProcessedTxOutput,
13955
13968
  deserializeProviderCache,
13956
13969
  deserializeReceipt,
13970
+ deserializeTransactionResponseJson,
13957
13971
  dispatchFuelConnectorEvent,
13958
13972
  english,
13959
13973
  extractBurnedAssetsFromReceipts,
@@ -14054,6 +14068,7 @@ export {
14054
14068
  serializeChain,
14055
14069
  serializeNodeInfo,
14056
14070
  serializeProviderCache,
14071
+ serializeTransactionResponseJson,
14057
14072
  setAndValidateGasAndFeeForAssembledTx,
14058
14073
  transactionRequestify,
14059
14074
  urlJoin,