Skip to content

Commit

Permalink
feat: use committed version.rs in check_version_compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Br1ght0ne committed Mar 25, 2024
1 parent 8b667df commit 125f3ac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/fuels-accounts/src/provider/supported_versions.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use semver::Version;

fn get_supported_fuel_core_version() -> Version {
"0.23.0".parse().expect("is valid version")
}
pub const SUPPORTED_FUEL_CORE_VERSION: Version =
include!("../../../../scripts/fuel-core-version/version.rs");

#[derive(Debug, PartialEq, Eq)]
pub(crate) struct VersionCompatibility {
Expand All @@ -15,8 +14,7 @@ pub(crate) struct VersionCompatibility {
pub(crate) fn check_fuel_core_version_compatibility(
network_version: Version,
) -> VersionCompatibility {
let supported_version = get_supported_fuel_core_version();
check_version_compatibility(network_version, supported_version)
check_version_compatibility(network_version, SUPPORTED_FUEL_CORE_VERSION)
}

fn check_version_compatibility(
Expand Down

0 comments on commit 125f3ac

Please sign in to comment.