+
+ if(array.length>0){
+ account.setupNet(`${this.net}${this.netType}`)
+ const promise =
+ _(array)
+ .groupBy('asset')
+ .map((objs, key) => {
+ return this.queryAsset(key).then(resp =>{
+ return {
+ 'asset': key,
+ 'alias':resp.alias,
+ 'amount':Num.formatNue( _.sumBy(objs, 'amount'), resp.decimals)
+ }
+ })
+ })
+
+ let that = this;
+ Promise.all(promise).then(function(output) {
+ that.transaction.amounts = output
+ })
+
+ }
+
+