Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 6063e6a

Browse files
committed
Depend on payjoin taproot spend fix
1 parent 159257c commit 6063e6a

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mutiny-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cbc = { version = "0.1", features = ["alloc"] }
4444
aes = { version = "0.8" }
4545
jwt-compact = { version = "0.8.0-beta.1", features = ["es256k"] }
4646
argon2 = { version = "0.5.0", features = ["password-hash", "alloc"] }
47-
payjoin = { version = "0.12.0", features = ["v2", "send", "receive", "base64"] }
47+
payjoin = { version = "0.13.0", features = ["v2", "send", "receive", "base64"] }
4848
gluesql = { version = "0.15", default-features = false, features = ["memory-storage"] }
4949
gluesql-core = "0.15.0"
5050
bincode = "1.3.3"

mutiny-core/src/error.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ pub enum MutinyError {
147147
/// Payjoin request creation failed.
148148
#[error("Failed to create payjoin request.")]
149149
PayjoinCreateRequest,
150-
/// Payjoin response validation failed.
151-
#[error("Failed to validate payjoin response.")]
152-
PayjoinValidateResponse(payjoin::send::ValidationError),
150+
/// Payjoin request failed.
151+
#[error("Payjoin response error.")]
152+
PayjoinResponse(payjoin::send::ResponseError),
153153
/// Payjoin configuration error
154154
#[error("Payjoin configuration failed.")]
155155
PayjoinConfigError,
@@ -465,8 +465,8 @@ impl From<payjoin::send::CreateRequestError> for MutinyError {
465465
}
466466
}
467467

468-
impl From<payjoin::send::ValidationError> for MutinyError {
469-
fn from(e: payjoin::send::ValidationError) -> Self {
470-
Self::PayjoinValidateResponse(e)
468+
impl From<payjoin::send::ResponseError> for MutinyError {
469+
fn from(e: payjoin::send::ResponseError) -> Self {
470+
Self::PayjoinResponse(e)
471471
}
472472
}

mutiny-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ getrandom = { version = "0.2", features = ["js"] }
4141
futures = "0.3.25"
4242
urlencoding = "2.1.2"
4343
once_cell = "1.18.0"
44-
payjoin = { version = "0.12.0", features = ["send", "base64"] }
44+
payjoin = { version = "0.13.0", features = ["send", "base64"] }
4545
fedimint-core = "0.2.1"
4646

4747
# The `console_error_panic_hook` crate provides better debugging of panics by

mutiny-wasm/src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ pub enum MutinyJsError {
147147
/// Payjoin request creation failed.
148148
#[error("Failed to create payjoin request.")]
149149
PayjoinCreateRequest,
150-
/// Payjoin response validation failed.
151-
#[error("Failed to validate payjoin response.")]
152-
PayjoinValidateResponse,
150+
/// Payjoin request failed.
151+
#[error("Payjoin response error.")]
152+
PayjoinResponse,
153153
/// Payjoin configuration error
154154
#[error("Payjoin configuration failed.")]
155155
PayjoinConfigError,
@@ -209,7 +209,7 @@ impl From<MutinyError> for MutinyJsError {
209209
MutinyError::NetworkMismatch => MutinyJsError::NetworkMismatch,
210210
MutinyError::PayjoinConfigError => MutinyJsError::PayjoinConfigError,
211211
MutinyError::PayjoinCreateRequest => MutinyJsError::PayjoinCreateRequest,
212-
MutinyError::PayjoinValidateResponse(_) => MutinyJsError::PayjoinValidateResponse,
212+
MutinyError::PayjoinResponse(_) => MutinyJsError::PayjoinResponse,
213213
}
214214
}
215215
}

0 commit comments

Comments
 (0)