From f5b1afdbf1c0b80ea7337e2355f2d6634ab90690 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 7 Aug 2014 09:59:57 -0700 Subject: [PATCH] paypro: removed a lot of now-pointless code dealing with merchantData.total. --- js/directives.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/js/directives.js b/js/directives.js index 21432b046..ddf24b7cb 100644 --- a/js/directives.js +++ b/js/directives.js @@ -51,20 +51,6 @@ angular.module('copayApp.directives') var payment_url = merchantData.pr.pd.payment_url; var total = merchantData.total; - if (typeof total === 'string') { - total = bignum(total, 10).toBuffer({ - endian: 'little', - size: 1 - }); - } - - total = bignum - .fromBuffer(total, { - endian: 'little', - size: 1 - }) - .toString(10); - // XXX There needs to be a better way to do this: total = +total / config.unitToSatoshi;