]> Untitled Git - bdk-cli/commit
refactor(config): remove redundant wallet field from WalletConfigInner
authorJennycj <ezeobijennifer2@gmail.com>
Mon, 12 Oct 2026 13:32:03 +0000 (14:32 +0100)
committerJennycj <ezeobijennifer2@gmail.com>
Sun, 25 Oct 2026 22:53:30 +0000 (23:53 +0100)
commitbc050c71f322d50cfa024a79a8760ce305227add
tree65f976fd2331bd92f943b43a8c01691e0052ba31
parentd1c6c9c552682e8a72844708a28fbb88ea184332
refactor(config): remove redundant wallet field from WalletConfigInner

`WalletConfigInner` duplicated its own wallet name in a `wallet` field,
even though it's already the key in `WalletConfig::wallets` - this
showed up as a redundant `"wallet"` entry in `wallets list` output.

`TryFrom<&WalletConfigInner> for WalletOpts` relied on that field, so
it's replaced with a private `to_wallet_opts(&self, wallet_name: &str)`
that takes the name from the caller's map lookup instead. Old config.toml
files still load fine; serde ignores the now-unknown `wallet` key.

Fixes #332
CHANGELOG.md
src/config.rs
src/handlers/config.rs
tests/integration/init.rs