Skip to content

Commit

Permalink
chore!: bump fuel-core to 0.22 (#1233)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
-  removed the `peer_count` field from `ChainInfo
  • Loading branch information
hal3e authored Dec 12, 2023
1 parent f9ef414 commit 135a2c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels-accounts/src/provider/supported_versions.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
2 changes: 0 additions & 2 deletions packages/fuels-core/src/types/wrappers/chain_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -19,7 +18,6 @@ impl From<ClientChainInfo> 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,
}
Expand Down

0 comments on commit 135a2c8

Please sign in to comment.