@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.

@@ -29075,6 +29075,7 @@ This unreleased fuel-core build may include features and updates not yet support
29075
29075
  ErrorCode2["ACCOUNT_REQUIRED"] = "account-required";
29076
29076
  ErrorCode2["UNLOCKED_WALLET_REQUIRED"] = "unlocked-wallet-required";
29077
29077
  ErrorCode2["ERROR_BUILDING_BLOCK_EXPLORER_URL"] = "error-building-block-explorer-url";
29078
+ ErrorCode2["UNSUPPORTED_FUEL_CLIENT_VERSION"] = "unsupported-fuel-client-version";
29078
29079
  ErrorCode2["VITEPRESS_PLUGIN_ERROR"] = "vitepress-plugin-error";
29079
29080
  ErrorCode2["INVALID_MULTICALL"] = "invalid-multicall";
29080
29081
  ErrorCode2["SCRIPT_REVERTED"] = "script-reverted";
@@ -40812,8 +40813,9 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
40812
40813
  static ensureClientVersionIsSupported(nodeInfo) {
40813
40814
  const { isMajorSupported, isMinorSupported, supportedVersion } = checkFuelCoreVersionCompatibility(nodeInfo.nodeVersion);
40814
40815
  if (!isMajorSupported || !isMinorSupported) {
40815
- console.warn(
40816
- `Unsupported fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
40816
+ throw new FuelError(
40817
+ FuelError.CODES.UNSUPPORTED_FUEL_CLIENT_VERSION,
40818
+ `Fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
40817
40819
  );
40818
40820
  }
40819
40821
  }