Skip to content

Commit

Permalink
Merge pull request btcsuite#909 from guggero/return-correct-err
Browse files Browse the repository at this point in the history
wallet: return ErrNotMine for script addresses
  • Loading branch information
Roasbeef authored Feb 6, 2024
2 parents d356b54 + 9f5bc13 commit 1f3534b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/utxos.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (w *Wallet) FetchInputInfo(prevOut *wire.OutPoint) (*wire.MsgTx,
}
pubKeyAddr, ok := addr.(waddrmgr.ManagedPubKeyAddress)
if !ok {
return nil, nil, nil, 0, err
return nil, nil, nil, 0, ErrNotMine
}
keyScope, derivationPath, _ := pubKeyAddr.DerivationInfo()

Expand Down

0 comments on commit 1f3534b

Please sign in to comment.