Skip to content

Commit

Permalink
feat(BCH - Split): dont forget about legacy addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Nov 21, 2018
1 parent 23e8f2f commit 8ad4939
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/blockchain-wallet-v4/src/redux/payment/bch/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ export default ({ api }) => {
)
case ADDRESS_TYPES.LEGACY:
return yield call(() =>
taskToPromise(bch.signLegacy(network, password, wrapper, selection))
taskToPromise(
bch.signLegacy(network, password, wrapper, selection, coinDust)
)
)
case ADDRESS_TYPES.WATCH_ONLY:
case ADDRESS_TYPES.EXTERNAL:
Expand Down
9 changes: 5 additions & 4 deletions packages/blockchain-wallet-v4/src/signer/bch.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ export const signHDWallet = curry(
)

// signLegacy :: network -> password -> wrapper -> selection -> Task selection
export const signLegacy = curry((network, secondPassword, wrapper, selection) =>
addLegacyWIFS(network, secondPassword, wrapper, selection).map(
signWithWIF(network)
)
export const signLegacy = curry(
(network, secondPassword, wrapper, selection, coinDust) =>
addLegacyWIFS(network, secondPassword, wrapper, selection).map(
signWithWIF(network, coinDust)
)
)

export const wifToKeys = curry((network, selection) =>
Expand Down

0 comments on commit 8ad4939

Please sign in to comment.