paypro: removed a lot of now-pointless code dealing with merchantData.total.
This commit is contained in:
parent
80ceca3b73
commit
f5b1afdbf1
1 changed files with 0 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue