From 135a2c87f62971a4f8f15e78641fc8f191182f93 Mon Sep 17 00:00:00 2001 From: hal3e Date: Tue, 12 Dec 2023 14:23:21 +0100 Subject: [PATCH] chore!: bump `fuel-core` to `0.22` (#1233) BREAKING CHANGE: - removed the `peer_count` field from `ChainInfo --- .github/workflows/ci.yml | 2 +- Cargo.toml | 12 ++++++------ .../src/provider/supported_versions.rs | 2 +- packages/fuels-core/src/types/wrappers/chain_info.rs | 2 -- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01bca793ab..3982b92a03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: CARGO_TERM_COLOR: always DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v2.3.6/dasel_linux_amd64 RUSTFLAGS: "-D warnings" - FUEL_CORE_VERSION: 0.21.0 + FUEL_CORE_VERSION: 0.22.0 FUEL_CORE_PATCH_BRANCH: RUST_VERSION: 1.74.0 FORC_VERSION: 0.48.0 diff --git a/Cargo.toml b/Cargo.toml index 9cb33f936a..23463d1eff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,12 +72,12 @@ which = { version = "5.0.0", default-features = false } zeroize = "1.7.0" # Dependencies from the `fuel-core` repository: -fuel-core = { version = "0.21.0", default-features = false } -fuel-core-chain-config = { version = "0.21.0", default-features = false } -fuel-core-client = { version = "0.21.0", default-features = false } -fuel-core-poa = { version = "0.21.0", default-features = false } -fuel-core-services = { version = "0.21.0", default-features = false } -fuel-core-types = { version = "0.21.0", default-features = false } +fuel-core = { version = "0.22.0", default-features = false } +fuel-core-chain-config = { version = "0.22.0", default-features = false } +fuel-core-client = { version = "0.22.0", default-features = false } +fuel-core-poa = { version = "0.22.0", default-features = false } +fuel-core-services = { version = "0.22.0", default-features = false } +fuel-core-types = { version = "0.22.0", default-features = false } # Dependencies from the `fuel-vm` repository: fuel-asm = { version = "0.43.1" } diff --git a/packages/fuels-accounts/src/provider/supported_versions.rs b/packages/fuels-accounts/src/provider/supported_versions.rs index dc7e21a23d..bd67bb516d 100644 --- a/packages/fuels-accounts/src/provider/supported_versions.rs +++ b/packages/fuels-accounts/src/provider/supported_versions.rs @@ -1,7 +1,7 @@ use semver::Version; fn get_supported_fuel_core_version() -> Version { - "0.21.0-rc.1".parse().unwrap() + "0.22.0".parse().unwrap() } #[derive(Debug, PartialEq, Eq)] diff --git a/packages/fuels-core/src/types/wrappers/chain_info.rs b/packages/fuels-core/src/types/wrappers/chain_info.rs index 71389fa749..2eb84af5a5 100644 --- a/packages/fuels-core/src/types/wrappers/chain_info.rs +++ b/packages/fuels-core/src/types/wrappers/chain_info.rs @@ -9,7 +9,6 @@ use crate::types::block::Block; pub struct ChainInfo { pub da_height: u64, pub name: String, - pub peer_count: i32, pub latest_block: Block, pub consensus_parameters: ConsensusParameters, } @@ -19,7 +18,6 @@ impl From for ChainInfo { Self { da_height: client_chain_info.da_height, name: client_chain_info.name, - peer_count: client_chain_info.peer_count, latest_block: client_chain_info.latest_block.into(), consensus_parameters: client_chain_info.consensus_parameters, }