@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/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +3 -3
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/index.global.js +15 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/utils/transaction-response-serialization.d.ts +3 -2
- package/dist/providers/utils/transaction-response-serialization.d.ts.map +1 -1
- package/dist/test-utils.global.js +2 -26
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +1 -25
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +1 -25
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +14 -14
package/dist/test-utils.mjs
CHANGED
@@ -7689,30 +7689,6 @@ import { InputType as InputType8, OutputType as OutputType9 } from "@fuel-ts/tra
|
|
7689
7689
|
import { arrayify as arrayify17, hexlify as hexlify21, isDefined as isDefined4 } from "@fuel-ts/utils";
|
7690
7690
|
import { clone as clone9 } from "ramda";
|
7691
7691
|
|
7692
|
-
// src/providers/utils/transaction-response-serialization.ts
|
7693
|
-
var deserializeTransactionResponseJson = /* @__PURE__ */ __name((json) => {
|
7694
|
-
const {
|
7695
|
-
id,
|
7696
|
-
abis,
|
7697
|
-
status,
|
7698
|
-
providerUrl,
|
7699
|
-
requestJson,
|
7700
|
-
providerCache,
|
7701
|
-
gqlTransaction,
|
7702
|
-
preConfirmationStatus
|
7703
|
-
} = json;
|
7704
|
-
const provider = new Provider(providerUrl, { cache: providerCache });
|
7705
|
-
const { chainId } = providerCache.chain.consensusParameters;
|
7706
|
-
const response = new TransactionResponse(id, provider, Number(chainId), abis);
|
7707
|
-
if (requestJson) {
|
7708
|
-
response.request = transactionRequestify(JSON.parse(requestJson));
|
7709
|
-
}
|
7710
|
-
response.status = status;
|
7711
|
-
response.gqlTransaction = gqlTransaction;
|
7712
|
-
response.preConfirmationStatus = preConfirmationStatus;
|
7713
|
-
return response;
|
7714
|
-
}, "deserializeTransactionResponseJson");
|
7715
|
-
|
7716
7692
|
// src/types.ts
|
7717
7693
|
var AbstractAccount = class {
|
7718
7694
|
static {
|
@@ -8409,7 +8385,7 @@ var Account = class extends AbstractAccount {
|
|
8409
8385
|
transactionRequest,
|
8410
8386
|
params
|
8411
8387
|
);
|
8412
|
-
return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) :
|
8388
|
+
return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : transaction;
|
8413
8389
|
}
|
8414
8390
|
if (estimateTxDependencies) {
|
8415
8391
|
await this.provider.estimateTxDependencies(transactionRequest);
|