feat: debug on wallet

This commit is contained in:
thesimplekid
2024-06-18 13:50:40 +01:00
parent 53329997bb
commit b066b92a8d
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#[cfg(any(feature = "wallet", feature = "mint"))]
use std::collections::HashMap;
use std::fmt::Debug;
#[cfg(any(feature = "wallet", feature = "mint"))]
use async_trait::async_trait;
@@ -47,7 +48,7 @@ pub enum Error {
#[cfg(feature = "wallet")]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
pub trait WalletDatabase {
pub trait WalletDatabase: Debug {
type Err: Into<Error> + From<Error>;
async fn add_mint(

View File

@@ -34,7 +34,7 @@ pub mod error;
pub mod nostr;
pub mod util;
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct Wallet {
pub client: HttpClient,
pub localstore: Arc<dyn WalletDatabase<Err = cdk_database::Error> + Send + Sync>,