Closed thesimplekid closed 3 months ago
There are multiple places in the codebase that assume a single unit. This should not be assumed and as multiple units should be supported.
HashMap<Unit, Amount>
https://github.com/cashubtc/cdk/blob/2671c92c00353cd9656d0d678c3d9cb1c67b30f1/crates/cdk/src/wallet.rs#L127-L141
HashMap<MintUrl, HashMap<Unit, Amount>>
There are multiple places in the codebase that assume a single unit. This should not be assumed and as multiple units should be supported.