diff --git a/Cargo.lock b/Cargo.lock index 657c58d..d967e40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1224,7 +1224,7 @@ dependencies = [ [[package]] name = "mostro-cli" -version = "0.8.8" +version = "0.9.0" dependencies = [ "anyhow", "bitcoin_hashes 0.12.0", @@ -1248,9 +1248,9 @@ dependencies = [ [[package]] name = "mostro-core" -version = "0.5.1" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d330417006692cf396d2a891121a9bfb97679bba79ac379510d921c2a052a72" +checksum = "b9c9b85f86d390677e54823ede3278ab524bdd661dc852e28fda0bc6207f80be" dependencies = [ "anyhow", "serde", diff --git a/Cargo.toml b/Cargo.toml index 15ed983..2a4869c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mostro-cli" -version = "0.8.8" +version = "0.9.0" edition = "2021" license = "MIT" authors = [ @@ -39,7 +39,7 @@ uuid = { version = "1.3.0", features = [ dotenvy = "0.15.6" lightning-invoice = "0.23.0" reqwest = { version = "0.11", features = ["json"] } -mostro-core = "0.5.1" +mostro-core = "0.5.3" bitcoin_hashes = "0.12.0" lnurl-rs = "0.4.0" pretty_env_logger = "0.5.0" diff --git a/src/util.rs b/src/util.rs index 1ea27df..4e027df 100644 --- a/src/util.rs +++ b/src/util.rs @@ -5,7 +5,7 @@ use bitcoin_hashes::sha256::Hash as Sha256Hash; use chrono::NaiveDateTime; use dotenvy::var; use log::{error, info}; -use mostro_core::dispute::Dispute; +use mostro_core::dispute::{Dispute, Status as DisputeStatus}; use mostro_core::message::{Content, Message}; use mostro_core::order::Kind as MostroKind; use mostro_core::order::{SmallOrder, Status}; @@ -364,7 +364,7 @@ pub async fn get_disputes_list(pubkey: XOnlyPublicKey, client: &Client) -> Resul let generic_filter = Filter::new() .author(pubkey.to_string()) .custom_tag(Alphabet::Z, vec!["dispute"]) - .custom_tag(Alphabet::S, vec![Status::Pending.to_string()]) + .custom_tag(Alphabet::S, vec![DisputeStatus::Initiated.to_string()]) .kind(Kind::Custom(NOSTR_REPLACEABLE_EVENT_KIND)); let exec_filter = generic_filter;