@fuel-ts/account 0.0.0-rc-2143-20240516153006 → 0.0.0-rc-2322-20240517060059

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.

@@ -8409,6 +8409,7 @@ var generateTestWallet = async (provider, quantities) => {
8409
8409
  import { UTXO_ID_LEN as UTXO_ID_LEN3 } from "@fuel-ts/abi-coder";
8410
8410
  import { randomBytes as randomBytes6 } from "@fuel-ts/crypto";
8411
8411
  import { defaultSnapshotConfigs, defaultConsensusKey, hexlify as hexlify18 } from "@fuel-ts/utils";
8412
+ import { findBinPath } from "@fuel-ts/utils/cli-utils";
8412
8413
  import { spawn } from "child_process";
8413
8414
  import { randomUUID } from "crypto";
8414
8415
  import { existsSync, mkdirSync, rmSync, writeFileSync } from "fs";
@@ -8451,7 +8452,7 @@ var launchNode = async ({
8451
8452
  ip,
8452
8453
  port,
8453
8454
  args = [],
8454
- fuelCorePath = process.env.FUEL_CORE_PATH ?? void 0,
8455
+ useSystemFuelCore = false,
8455
8456
  loggingEnabled = true,
8456
8457
  debugEnabled = false,
8457
8458
  basePath
@@ -8471,7 +8472,8 @@ var launchNode = async ({
8471
8472
  const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
8472
8473
  const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
8473
8474
  const graphQLStartSubstring = "Binding GraphQL provider to";
8474
- const command = fuelCorePath ?? "fuel-core";
8475
+ const binPath = findBinPath("fuels-core", __dirname);
8476
+ const command = useSystemFuelCore ? "fuel-core" : binPath;
8475
8477
  const ipToUse = ip || "0.0.0.0";
8476
8478
  const portToUse = port || (await getPortPromise({
8477
8479
  port: 4e3,