Skip to content

Commit

Permalink
Merge pull request #61 from MostroP2P/hotfix-list-disputes
Browse files Browse the repository at this point in the history
Hotfix list disputes
  • Loading branch information
grunch authored Mar 12, 2024
2 parents 90eaaf0 + 0e8be6c commit 07796eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mostro-cli"
version = "0.8.8"
version = "0.9.0"
edition = "2021"
license = "MIT"
authors = [
Expand Down Expand Up @@ -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"
4 changes: 2 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 07796eb

Please sign in to comment.