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

package/dist/index.js CHANGED
@@ -3996,8 +3996,9 @@ var _Provider = class {
3996
3996
  static ensureClientVersionIsSupported(nodeInfo) {
3997
3997
  const { isMajorSupported, isMinorSupported, supportedVersion } = (0, import_versions.checkFuelCoreVersionCompatibility)(nodeInfo.nodeVersion);
3998
3998
  if (!isMajorSupported || !isMinorSupported) {
3999
- console.warn(
4000
- `Unsupported fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
3999
+ throw new import_errors14.FuelError(
4000
+ import_errors14.FuelError.CODES.UNSUPPORTED_FUEL_CLIENT_VERSION,
4001
+ `Fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
4001
4002
  );
4002
4003
  }
4003
4004
  }