From 216578a9301e29c05af73a46356bda1bb19ed540 Mon Sep 17 00:00:00 2001 From: MujkicA Date: Sun, 13 Oct 2024 11:13:15 +0200 Subject: [PATCH] review comments --- Cargo.toml | 1 - packages/fuels-accounts/Cargo.toml | 2 +- packages/fuels-accounts/build.rs | 4 ++-- packages/fuels-accounts/src/provider/retryable_client.rs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79d0f7a41..46ee4a9a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,6 @@ bech32 = "0.9.1" bytes = { version = "1.5.0", default-features = false } chrono = "0.4.31" cynic = { version = "2.2", default-features = false } -cynic-codegen = { version = "3.8.0", default-features = false } elliptic-curve = { version = "0.13.8", default-features = false } eth-keystore = "0.5.0" flate2 = { version = "1.0", default-features = false } diff --git a/packages/fuels-accounts/Cargo.toml b/packages/fuels-accounts/Cargo.toml index e18ec6bdd..34dea20b8 100644 --- a/packages/fuels-accounts/Cargo.toml +++ b/packages/fuels-accounts/Cargo.toml @@ -35,7 +35,7 @@ tempfile = { workspace = true } tokio = { workspace = true, features = ["test-util"] } [build-dependencies] -cynic = { workspace = true, features = ["default"], optional = true } # TODO reduce features +cynic = { workspace = true, features = ["default"], optional = true } fuel-core-client = { workspace = true, optional = true } [features] diff --git a/packages/fuels-accounts/build.rs b/packages/fuels-accounts/build.rs index 8fffa2a3b..4314a65b2 100644 --- a/packages/fuels-accounts/build.rs +++ b/packages/fuels-accounts/build.rs @@ -1,7 +1,7 @@ fn main() { - #[cfg(not(feature = "std"))] + #[cfg(feature = "std")] { - use std::{env, fs}; + use std::fs; fs::create_dir_all("target").expect("Unable to create target directory"); fs::write( diff --git a/packages/fuels-accounts/src/provider/retryable_client.rs b/packages/fuels-accounts/src/provider/retryable_client.rs index 14d0362e0..56acc0c86 100644 --- a/packages/fuels-accounts/src/provider/retryable_client.rs +++ b/packages/fuels-accounts/src/provider/retryable_client.rs @@ -306,6 +306,7 @@ impl RetryableClient { }) .await } + // DELEGATION END pub async fn is_user_account(&self, address: [u8; 32]) -> Result { let blob_id = BlobId::from(address); @@ -326,7 +327,6 @@ impl RetryableClient { Ok(!is_resource) } - // DELEGATION END } mod custom_queries {