mirror of https://github.com/BTCPrivate/copay.git
paypro: removed a lot of now-pointless code dealing with merchantData.total.
This commit is contained in:
parent
80ceca3b73
commit
f5b1afdbf1
|
@ -51,20 +51,6 @@ angular.module('copayApp.directives')
|
||||||
var payment_url = merchantData.pr.pd.payment_url;
|
var payment_url = merchantData.pr.pd.payment_url;
|
||||||
var total = merchantData.total;
|
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:
|
// XXX There needs to be a better way to do this:
|
||||||
total = +total / config.unitToSatoshi;
|
total = +total / config.unitToSatoshi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue