Skip to content

Commit

Permalink
fix(BCH): allow send to cashaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 14, 2018
1 parent 554ad1d commit 9ead32e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const bchToLabel = curry((payment, state) => {
case 'TO.ACCOUNT':
return selectors.core.kvStore.bch.getAccountLabel(state)(target.accountIndex).getOrElse(target.address)
case 'TO.ADDRESS':
return utils.bch.toCashAddr(target.address, true)
return utils.bch.isCashAddr(target.address) ? target.address : utils.bch.toCashAddr(target.address, true)
default:
return target.address
}
Expand Down

0 comments on commit 9ead32e

Please sign in to comment.