From 3a73f2453cd2026a0d0cb307a7ede909e33e3e52 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 1 Aug 2014 15:00:38 -0700 Subject: [PATCH] paypro: ripesha refund_to pubkeys. --- js/models/core/Wallet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index d654933ec..cbc4cf2d7 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -978,6 +978,8 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) { || self.publicKeyRing.getPubKeys(0, false, this.getMyCopayerId())[0]; if (options.refund_to) { + // pubkey needs to be ripesha'd + options.refund_to = bitcore.sha256ripe160(options.refund_to); var total = txp.merchant.pr.pd.outputs.reduce(function(total, _, i) { return total.add(bignum.fromBuffer(tx.outs[i].v, { endian: 'little',