better tx layout
This commit is contained in:
parent
5cff5f6b47
commit
fbede5a903
2 changed files with 17 additions and 15 deletions
|
|
@ -15,7 +15,6 @@ angular.module('copay.transactions').controller('TransactionsController',
|
|||
var b = i.txp.builder;
|
||||
var tx = b.build();
|
||||
var one = {
|
||||
valueOutSat: b.valueOutSat,
|
||||
feeSat: b.feeSat,
|
||||
};
|
||||
var outs = [];
|
||||
|
|
@ -24,7 +23,10 @@ angular.module('copay.transactions').controller('TransactionsController',
|
|||
var s = o.getScript();
|
||||
var aStr = bitcore.Address.fromScript(s, config.networkName).toString();
|
||||
if (!w.addressIsOwn(aStr))
|
||||
outs.push({address: aStr, value: bitcore.util.valueToBigInt(o.getValue())});
|
||||
outs.push({
|
||||
address: aStr,
|
||||
value: bitcore.util.valueToBigInt(o.getValue())/bitcore.util.COIN,
|
||||
});
|
||||
});
|
||||
one.outs = outs;
|
||||
ts.push(one);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue