You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #1981: refactor(electrum): remove unwrap()s and expect()s
b24ae6d test(electrum): test sync with incorrect network (Wei Chen)
0fdbe9d fix(electrum): Return error on incorrect network (志宇)
2b56f1a refactor(electrum): remove `unwrap()`s and `expect()`s (Wei Chen)
Pull request description:
Partially resolvesbitcoindevkit/bdk_wallet#30.
### Description
This PR eliminates all `unwrap()` and `expect()` calls from `bdk_electrum_client`, replacing them with proper error handling. Given that all public methods already return `Result`, we now propagate error messages instead of panicking.
### Changelog notice
* Removed all `unwrap()`s and `expect()`s from `bdk_electrum_client.rs`.
### Checklists
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
* [x] I ran `cargo +nightly fmt` and `cargo clippy` before committing
ACKs for top commit:
evanlinjin:
ACK b24ae6d
Tree-SHA512: 33c08031fda35ecc12100202fe7cba2f107bc4537e7519e2ed4df9c1ea70f4a644f0fce0d92175af9745d0bf352c61094eee2ff353636ba8342691d12e3b47cc
0 commit comments