Skip to content

Commit

Permalink
Fix messages_count in hooks; Adding features (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougEfresh committed Jun 28, 2024
1 parent a038e9d commit 3cbd119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fireblocks-sdk"
resolver = "2"
version = "0.3.2"
version = "0.4.0"
authors = ["Doug Chimento <dchimento@gmail.com>"]
description = "Rust implementation of the Fireblocks SDK"
readme = "README.md"
Expand All @@ -21,7 +21,6 @@ crate-type = ["cdylib", "rlib"]
[lints.rust]
unsafe_code = "forbid"


[lints.clippy]
enum_glob_use = "deny"
pedantic = "deny"
Expand All @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/types/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 3cbd119

Please sign in to comment.