Skip to content

Commit

Permalink
chore: bump fuel-core to 0.33.0 (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Br1ght0ne authored Aug 20, 2024
1 parent 3421ac2 commit 466d335
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .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.32.1
FUEL_CORE_VERSION: 0.33.0
FUEL_CORE_PATCH_BRANCH:
RUST_VERSION: 1.79.0
FORC_VERSION: 0.63.1
Expand Down Expand Up @@ -166,6 +166,7 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy,rustfmt
targets: wasm32-unknown-unknown

# selecting a toolchain either by action or manual `rustup` calls should happen
# before the cache plugin, as it uses the current rustc version as its cache key
Expand Down Expand Up @@ -219,7 +220,6 @@ jobs:
- name: Test WASM
if: ${{ matrix.command == 'test_wasm' }}
run: |
rustup target add wasm32-unknown-unknown
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd wasm-tests
wasm-pack test --node
Expand Down
14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ which = { version = "6.0.0", default-features = false }
zeroize = "1.7.0"

# Dependencies from the `fuel-core` repository:
fuel-core = { version = "0.32.1", default-features = false }
fuel-core-chain-config = { version = "0.32.1", default-features = false }
fuel-core-client = { version = "0.32.1", default-features = false }
fuel-core-poa = { version = "0.32.1", default-features = false }
fuel-core-services = { version = "0.32.1", default-features = false }
fuel-core-types = { version = "0.32.1", default-features = false }
fuel-core = { version = "0.33.0", default-features = false, features = [
"wasm-executor",
] }
fuel-core-chain-config = { version = "0.33.0", default-features = false }
fuel-core-client = { version = "0.33.0", default-features = false }
fuel-core-poa = { version = "0.33.0", default-features = false }
fuel-core-services = { version = "0.33.0", default-features = false }
fuel-core-types = { version = "0.33.0", default-features = false }

# Dependencies from the `fuel-vm` repository:
fuel-asm = { version = "0.56.0" }
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ async fn test_gas_errors() -> Result<()> {
.await
.expect_err("should error");

let expected = "provider: io error: Response errors; Validity(InsufficientFeeAmount";
let expected = "Response errors; Validity(InsufficientFeeAmount";
assert!(response.to_string().contains(expected));

Ok(())
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 32, 1);
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 33, 0);
1 change: 1 addition & 0 deletions packages/fuels-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description = "Fuel Rust SDK test helpers."
[dependencies]
fuel-core = { workspace = true, default-features = false, features = [
"test-helpers",
"wasm-executor",
], optional = true }
fuel-core-chain-config = { workspace = true, features = ["test-helpers"] }
fuel-core-client = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions packages/fuels-test-helpers/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use std::net::SocketAddr;
#[cfg(feature = "fuel-core-lib")]
use fuel_core::service::{Config as ServiceConfig, FuelService as CoreFuelService};
use fuel_core_chain_config::{ChainConfig, StateConfig};
#[cfg(feature = "fuel-core-lib")]
use fuel_core_services::Service;
use fuel_core_services::State;
use fuels_core::types::errors::{error, Result};

Expand Down Expand Up @@ -47,7 +45,7 @@ impl FuelService {

pub async fn stop(&self) -> Result<State> {
#[cfg(feature = "fuel-core-lib")]
let result = self.service.stop_and_await().await;
let result = self.service.send_stop_signal_and_await_shutdown().await;

#[cfg(not(feature = "fuel-core-lib"))]
let result = self.service.stop();
Expand Down
5 changes: 2 additions & 3 deletions packages/fuels/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ description = "Fuel Rust SDK."
ignored = ["fuel-core"]

[dependencies]
fuel-core = { workspace = true, default-features = false, optional = true }
fuel-core-client = { workspace = true, optional = true }
fuel-crypto = { workspace = true }
fuel-tx = { workspace = true }
Expand All @@ -40,5 +39,5 @@ std = [
"fuels-core/std",
"fuels-test-helpers?/std",
]
fuel-core-lib = ["fuels-test-helpers?/fuel-core-lib", "dep:fuel-core"]
rocksdb = ["fuel-core?/rocksdb", "fuels-test-helpers?/rocksdb"]
fuel-core-lib = ["fuels-test-helpers?/fuel-core-lib"]
rocksdb = ["fuels-test-helpers?/rocksdb"]

0 comments on commit 466d335

Please sign in to comment.