cashubtc / cdk

Cashu Development Kit
MIT License
87 stars 45 forks source link

fakewallet values in config #470

Closed Jeezman closed 6 days ago

Jeezman commented 1 week ago

Description

when runing cargo run --bin cdk-mintd with fakewallet set in config.toml it gives the error

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.16s
     Running `target/debug/cdk-mintd`
thread 'main' panicked at crates/cdk-mintd/src/main.rs:214:60:
Fake wallet defined
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This PR

assertion before

thread 'main' panicked at crates/cdk-mintd/src/config.rs:227:38:
assertion failed: settings.fake_wallet.is_some()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

assertion after

thread 'main' panicked at crates/cdk-mintd/src/config.rs:219:38:
FakeWallet backend requires a valid config.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist