diff --git a/Cargo.toml b/Cargo.toml index 4a1f1ff..a3c76a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fireblocks-sdk" resolver = "2" -version = "0.3.2" +version = "0.4.0" authors = ["Doug Chimento "] description = "Rust implementation of the Fireblocks SDK" readme = "README.md" @@ -21,7 +21,6 @@ crate-type = ["cdylib", "rlib"] [lints.rust] unsafe_code = "forbid" - [lints.clippy] enum_glob_use = "deny" pedantic = "deny" @@ -34,7 +33,8 @@ return_self_not_must_use = "allow" missing_errors_doc = "allow" [features] -default = [] +default = ["reqwest/default-tls"] +rustls-tls = ["reqwest/rustls-tls"] sql = ["sqlx"] [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 85257af..3ffdae2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -526,16 +526,16 @@ mod tests { let c = config.client(); match c.hooks_resend().await { Ok(result) => { - assert!(result.0.message_count > 0); + assert!(result.0.messages_count > 0); }, Err(e) => { - assert!(e.to_string().contains("Internal Fireblocks Error")); + assert!(e.to_string().contains("Internal Fireblocks Error"), "{}", e.to_string()); }, }; match c.hooks_resend_tx("e01b1c68-2d26-45dc-bb02-4cc9152295e1", true, true).await { Err(e) => { - assert!(e.to_string().contains("Internal Fireblocks Error")); + assert!(e.to_string().contains("Internal Fireblocks Error"), "{}", e.to_string()); }, Ok(result) => { assert!(result.0.success); diff --git a/src/types/hooks.rs b/src/types/hooks.rs index d63e4c4..5b1b1d0 100644 --- a/src/types/hooks.rs +++ b/src/types/hooks.rs @@ -3,5 +3,5 @@ use serde_derive::Deserialize; #[derive(Debug, Deserialize, Default)] #[serde(rename_all = "camelCase")] pub struct HookResponse { - pub message_count: u32, + pub messages_count: u32, }