import { Number as Num } from "@/utils/Number"
import { mapActions, mapGetters, mapState } from 'vuex'
import * as Actions from '@/store/constants';
+ import _ from 'lodash'
const currencyInPrice = {
in_cny: 'cny_price',
transaction.build(this.account.guid, this.transaction.to, this.transaction.asset, Num.convertToNue(this.transaction.amount,this.selectAsset.decimals), this.transaction.fee, this.transaction.confirmations).then(result => {
loader.hide();
if(!this.transaction.fee){
- this.transaction.fee = Number(result.fee / 100000000);
+ this.transaction.fee = Number( _.sumBy(result, 'fee') / 100000000);
}
this.$router.push({ name: 'transfer-confirm', params: { account: this.account, transaction: this.transaction, rawData: result, assetAlias: this.selectAsset.symbol, type: this.$route.query.type } })
}).catch(error => {
return {
full: false,
title:null,
- rawData: {},
+ rawData: [],
account: {},
transaction: {
to: "",
});
// rawData, password
- transaction.transfer(this.account.guid, this.rawData, this.password)
+
+ Promise.all(this.rawData.map( (rawdata) => transaction.transfer(this.account.guid, rawdata, this.password)))
.then(ret => {
loader.hide();
if(this.$route.params.type == 'popup'){
- LocalStream.send({method:'transfer',action:'success', message:ret});
+ LocalStream.send({method:'transfer',action:'success', message:ret[ret.length-1]});
window.close();
}
this.$dialog.show({
account.list()
.then(accounts => {
- console.log(accounts)
bytom.accountList = accounts;
if (accounts.length > 0) {
bytom.currentAccount = accounts[0];
}
+ account.setupNet(`${val.value}${this.netType}`);
this[Actions.UPDATE_STORED_BYTOM](bytom)
})
.catch((errors) =>{
bytom.accountList =[]
- this[Actions.UPDATE_STORED_BYTOM](bytom)
+
+ account.setupNet(`${val.value}${this.netType}`);
+ this[Actions.UPDATE_STORED_BYTOM](bytom)
})
}
},
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='gnooapainaenaagmljnopepbheiaaaok'>
- <updatecheck codebase='http://localhost:8000/chrome-ext.crx' version='2.1.0' />
+ <updatecheck codebase='http://localhost:8000/chrome-ext.crx' version='2.1.1' />
</app>
</gupdate>
\ No newline at end of file