@fuel-ts/account 0.0.0-rc-2209-20240430130352 → 0.0.0-rc-2143-20240430130957

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.

@@ -3738,8 +3738,9 @@ var _Provider = class {
3738
3738
  static ensureClientVersionIsSupported(nodeInfo) {
3739
3739
  const { isMajorSupported, isMinorSupported, supportedVersion } = checkFuelCoreVersionCompatibility(nodeInfo.nodeVersion);
3740
3740
  if (!isMajorSupported || !isMinorSupported) {
3741
- console.warn(
3742
- `Unsupported fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
3741
+ throw new FuelError13(
3742
+ FuelError13.CODES.UNSUPPORTED_FUEL_CLIENT_VERSION,
3743
+ `Fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
3743
3744
  );
3744
3745
  }
3745
3746
  }
@@ -8290,6 +8291,7 @@ var launchNode = async ({
8290
8291
  ip,
8291
8292
  port,
8292
8293
  args = [],
8294
+ fuelCorePath = void 0,
8293
8295
  useSystemFuelCore = false,
8294
8296
  loggingEnabled = true,
8295
8297
  debugEnabled = false,
@@ -8310,7 +8312,7 @@ var launchNode = async ({
8310
8312
  const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
8311
8313
  const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
8312
8314
  const graphQLStartSubstring = "Binding GraphQL provider to";
8313
- const binPath = findBinPath("fuels-core", __dirname);
8315
+ const binPath = fuelCorePath ?? findBinPath("fuels-core", __dirname);
8314
8316
  const command = useSystemFuelCore ? "fuel-core" : binPath;
8315
8317
  const ipToUse = ip || "0.0.0.0";
8316
8318
  const portToUse = port || (await getPortPromise({