Skip to content

Commit

Permalink
Merge bitcoindevkit#1560: Derive Clone on AddressInfo
Browse files Browse the repository at this point in the history
b842927 feat(wallet): Derive Clone on AddressInfo (Praveen Perera)

Pull request description:

  ### Description

  Derive `Clone` on `AddressInfo` so I can clone it

  ### 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 fmt` and `cargo clippy` before committing

  ### Changelog notice

  * Added `Clone` impl for `AddessInfo`

ACKs for top commit:
  oleonardolima:
    ACK b842927
  evanlinjin:
    ACK b842927
  notmandatory:
    ACK b842927

Tree-SHA512: 56287730d74757ce8b1ec3fc8b9069da9ca2f95da80ce07a1cb4077cd9cc1da0a597b32d57eb2971f874865c125aec4a3313b373a613d338e8d1bdfb4e797851
  • Loading branch information
notmandatory committed Aug 21, 2024
2 parents acccb59 + b842927 commit 37314dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wallet/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl From<SyncResult> for Update {

/// A derived address and the index it was found at.
/// For convenience this automatically derefs to `Address`
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct AddressInfo {
/// Child index of this address
pub index: u32,
Expand Down

0 comments on commit 37314dc

Please sign in to comment.