Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(BCH): ability to exchange from imported
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Nov 21, 2017
1 parent c458ddb commit 673328c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bch/bch-imported.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable semi */
const BchSpendable = require('./bch-spendable')
const BchShiftPayment = require('../shift/bch-payment')
const { compose, reduce, filter, add } = require('ramda')

const sumNonNull = compose(reduce(add, 0), filter(x => x != null))
Expand Down Expand Up @@ -29,6 +30,10 @@ class BchImported extends BchSpendable {
createPayment () {
return super.createPayment().from(this.addresses, this.addresses[0])
}

createShiftPayment (wallet) {
return BchShiftPayment.fromWallet(wallet, this)
}
}

module.exports = BchImported

0 comments on commit 673328c

Please sign in to comment.