};
},
computed: {
+ address: function(){
+ if(this.netType === 'vapor'){
+ return this.currentAccount.vpAddress
+ }else{
+ return this.currentAccount.address
+ }
+ },
...mapGetters([
'currentAccount',
'net',
onCancel: this.onCancel
});
- transaction.buildTransaction(this.currentAccount.guid, this.transaction.input, this.transaction.output, this.transaction.fee , this.transaction.confirmations).then(async (result) => {
+ transaction.buildTransaction(this.address, this.transaction.input, this.transaction.output, this.transaction.fee , this.transaction.confirmations).then(async (result) => {
let arrayData
if(this.transaction.args){
arrayData = await transaction.convertArgument(this.transaction.args)
}
- return transaction.advancedTransfer(this.currentAccount.guid, result, this.password, arrayData)
+ return transaction.advancedTransfer(this.currentAccount.guid, result[0], this.password, arrayData, this.address)
.then((resp) => {
loader.hide();
this.prompt.responder(resp);
return this.queryAsset(key).then(resp =>{
return {
'asset': key,
- 'alias':resp.alias,
- 'amount':Num.formatNue( _.sumBy(objs, 'amount'), resp.decimals)
+ 'alias':resp.symbol,
+ 'amount': _.sumBy(objs, 'amount')
}
})
})