Skip to content

Commit

Permalink
fix(Transfer All): exclude non-spendable addrs from transfer all
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 9, 2019
1 parent 0e9cdcb commit 64ddffa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export default ({ coreSagas, networks }) => {
const addressesR = yield select(
selectors.core.common.btc.getActiveAddresses
)
const addresses = addressesR.getOrElse([]).map(prop('addr'))
const addresses = addressesR
.getOrElse([])
.filter(prop('priv'))
.map(prop('addr'))
payment = yield payment.from(addresses, ADDRESS_TYPES.LEGACY)
} else {
const accountsR = yield select(
Expand Down

0 comments on commit 64ddffa

Please sign in to comment.