Skip to content

Commit

Permalink
Merge pull request #1242 from DanGould/payjoin-0.13.1
Browse files Browse the repository at this point in the history
Bump payjoin version 0.13.1
  • Loading branch information
TonyGiorgio authored Aug 14, 2024
2 parents f2b6e05 + 78775a6 commit cee8713
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion mutiny-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cbc = { version = "0.1", features = ["alloc"] }
aes = { version = "0.8" }
jwt-compact = { version = "0.8.0-beta.1", features = ["es256k"] }
argon2 = { version = "0.5.0", features = ["password-hash", "alloc"] }
payjoin = { version = "0.13.0", features = ["send", "base64"] }
payjoin = { version = "0.13.1", features = ["send", "base64"] }
bincode = "1.3.3"
hex-conservative = "0.1.1"
async-lock = "3.2.0"
Expand Down
12 changes: 6 additions & 6 deletions mutiny-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4290,8 +4290,8 @@ mod tests {
parse_npub("npub18s7md9ytv8r240jmag5j037huupk5jnsk94adykeaxtvc6lyftesuw5ydl").unwrap();
let ben =
parse_npub("npub1u8lnhlw5usp3t9vmpz60ejpyt649z33hu82wc2hpv6m5xdqmuxhs46turz").unwrap();
let tony =
parse_npub("npub1t0nyg64g5vwprva52wlcmt7fkdr07v5dr7s35raq9g0xgc0k4xcsedjgqv").unwrap();
let jack =
parse_npub("npub1sg6plzptd64u62a878hep2kev88swjh3tw00gjsfl8f237lmu63q0uf63m").unwrap();

// create wallet
let mnemonic = generate_seed(12).unwrap();
Expand Down Expand Up @@ -4324,22 +4324,22 @@ mod tests {
assert!(contact.ln_address.is_some());
assert!(!contact.name.is_empty());

// add tony as a contact with incomplete info
// add jack as a contact with incomplete info
let incorrect_name = "incorrect name".to_string();
let new_contact = Contact {
name: incorrect_name.clone(),
npub: Some(tony),
npub: Some(jack),
..Default::default()
};
let id = mw.storage.create_new_contact(new_contact).unwrap();

// sync contacts again, tony's contact should be correct
// sync contacts again, jack's contact should be correct
mw.sync_nostr_contacts(npub).await.expect("synced contacts");

let contacts = mw.storage.get_contacts().unwrap();
assert_eq!(contacts.len(), 2);
let contact = contacts.get(&id).unwrap();
assert_eq!(contact.npub, Some(tony));
assert_eq!(contact.npub, Some(jack));
assert!(contact.image_url.is_some());
assert!(contact.ln_address.is_some());
assert_ne!(contact.name, incorrect_name);
Expand Down
2 changes: 1 addition & 1 deletion mutiny-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ futures = "0.3.25"
urlencoding = "2.1.2"
once_cell = "1.18.0"
hex-conservative = "0.1.1"
payjoin = { version = "0.13.0", features = ["send", "base64"] }
payjoin = { version = "0.13.1", features = ["send", "base64"] }
fedimint-core = "=0.3.0"
moksha-core = "0.2.1"

Expand Down

0 comments on commit cee8713

Please sign in to comment.