Skip to content

Commit

Permalink
Depend on payjoin taproot spend fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Jan 6, 2024
1 parent 4f2941f commit d629f0c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
5 changes: 3 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.12.0", features = ["v2", "send", "receive", "base64"] }
payjoin = { version = "0.13.0", features = ["v2", "send", "receive", "base64"] }
gluesql = { version = "0.15", default-features = false, features = ["memory-storage"] }
gluesql-core = "0.15.0"
bincode = "1.3.3"
Expand Down
12 changes: 6 additions & 6 deletions mutiny-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ pub enum MutinyError {
/// Payjoin request creation failed.
#[error("Failed to create payjoin request.")]
PayjoinCreateRequest,
/// Payjoin response validation failed.
#[error("Failed to validate payjoin response.")]
PayjoinValidateResponse(payjoin::send::ValidationError),
/// Payjoin request failed.
#[error("Payjoin response error.")]
PayjoinResponse(payjoin::send::ResponseError),
/// Payjoin configuration error
#[error("Payjoin configuration failed.")]
PayjoinConfigError,
Expand Down Expand Up @@ -471,8 +471,8 @@ impl From<payjoin::send::CreateRequestError> for MutinyError {
}
}

impl From<payjoin::send::ValidationError> for MutinyError {
fn from(e: payjoin::send::ValidationError) -> Self {
Self::PayjoinValidateResponse(e)
impl From<payjoin::send::ResponseError> for MutinyError {
fn from(e: payjoin::send::ResponseError) -> Self {
Self::PayjoinResponse(e)
}
}
2 changes: 1 addition & 1 deletion mutiny-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ getrandom = { version = "0.2", features = ["js"] }
futures = "0.3.25"
urlencoding = "2.1.2"
once_cell = "1.18.0"
payjoin = { version = "0.12.0", features = ["send", "base64"] }
payjoin = { version = "0.13.0", features = ["send", "base64"] }
fedimint-core = "0.2.1"

# The `console_error_panic_hook` crate provides better debugging of panics by
Expand Down
8 changes: 4 additions & 4 deletions mutiny-wasm/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ pub enum MutinyJsError {
/// Payjoin request creation failed.
#[error("Failed to create payjoin request.")]
PayjoinCreateRequest,
/// Payjoin response validation failed.
#[error("Failed to validate payjoin response.")]
PayjoinValidateResponse,
/// Payjoin request failed.
#[error("Payjoin response error.")]
PayjoinResponse,
/// Payjoin configuration error
#[error("Payjoin configuration failed.")]
PayjoinConfigError,
Expand Down Expand Up @@ -209,7 +209,7 @@ impl From<MutinyError> for MutinyJsError {
MutinyError::NetworkMismatch => MutinyJsError::NetworkMismatch,
MutinyError::PayjoinConfigError => MutinyJsError::PayjoinConfigError,
MutinyError::PayjoinCreateRequest => MutinyJsError::PayjoinCreateRequest,
MutinyError::PayjoinValidateResponse(_) => MutinyJsError::PayjoinValidateResponse,
MutinyError::PayjoinResponse(_) => MutinyJsError::PayjoinResponse,
}
}
}
Expand Down

0 comments on commit d629f0c

Please sign in to comment.