Skip to content

Commit 6a9085b

Browse files
committed
Update to latest spark-sdk
1 parent 63fa646 commit 6a9085b

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

orange-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bitcoin-payment-instructions = { workspace = true }
2323
chrono = { version = "0.4", default-features = false }
2424
rand = { version = "0.8.5", optional = true }
2525
reqwest = { version = "0.12.23", default-features = false, features = ["rustls-tls"] }
26-
spark-wallet = { git = "https://github.com/breez/spark-sdk.git", rev = "47986e0ebaa7a1522ed21d0a82cea92b0d8342e4", default-features = false, features = ["rustls-tls"], optional = true }
26+
spark-wallet = { git = "https://github.com/breez/spark-sdk.git", rev = "6e12f98be3f100fca0411e3209a610decfa32279", default-features = false, features = ["rustls-tls"], optional = true }
2727
tokio = { version = "1.0", default-features = false, features = ["rt-multi-thread", "sync"] }
2828
uuid = { version = "1.0", default-features = false, optional = true }
2929
cdk = { git = "https://github.com/benthecarman/cdk.git", branch = "orange-fork", default-features = false, features = ["wallet"], optional = true }

orange-sdk/src/trusted_wallet/spark.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use uuid::Uuid;
3838
/// A wallet implementation using the Breez Spark SDK.
3939
#[derive(Clone)]
4040
pub(crate) struct Spark {
41-
spark_wallet: Arc<SparkWallet<DefaultSigner>>,
41+
spark_wallet: Arc<SparkWallet>,
4242
store: Arc<dyn KVStore + Send + Sync>,
4343
event_queue: Arc<EventQueue>,
4444
tx_metadata: TxMetadataStore,
@@ -305,7 +305,7 @@ impl Spark {
305305
log_info!(logger, "Starting Spark wallet with public key: {pk}");
306306

307307
let spark_wallet =
308-
Arc::new(SparkWallet::connect(spark_config, signer).await.map_err(|e| {
308+
Arc::new(SparkWallet::connect(spark_config, Arc::new(signer)).await.map_err(|e| {
309309
log_error!(logger, "Failed to connect to Spark wallet: {e:?}");
310310
InitFailure::TrustedFailure(e.into())
311311
})?);
@@ -424,8 +424,7 @@ impl Spark {
424424

425425
/// Synchronizes payments from transfers to persistent storage
426426
async fn sync_payments_to_storage(
427-
spark_wallet: &SparkWallet<DefaultSigner>, store: &Arc<dyn KVStore + Send + Sync>,
428-
logger: &Logger,
427+
spark_wallet: &SparkWallet, store: &Arc<dyn KVStore + Send + Sync>, logger: &Logger,
429428
) -> Result<(), TrustedError> {
430429
// sync payments
431430
const BATCH_SIZE: u64 = 50;

0 commit comments

Comments
 (0)