paypro: removed a lot of now-pointless code dealing with merchantData.total.

This commit is contained in:
Christopher Jeffrey 2014-08-07 09:59:57 -07:00 committed by Manuel Araoz
parent 80ceca3b73
commit f5b1afdbf1
1 changed files with 0 additions and 14 deletions

View File

@ -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;