let account = {
// setupNet: bytom.setupNet
setupNet: (net) => {
+ // older version compat
const network = net.substr(0, 7)
const chain = net.substr(7)
- console.log(network, chain);
setChain(chain)
setNet(network)
- // older version
bytom.setupNet(net)
}
}
// bytom.accounts
// .listAddressUseServer(address)
.then(address => {
+ const _bytom = context.bytom.clone();
+ const isVapor = _bytom.settings.netType === 'vapor'
+
+ if (address.address !== context.bytom.currentAccount[isVapor ? 'vpAddress' : 'address']) {
+ return
+ }
+
let balances = address.balances || []
let votes = address.votes || []
- const _bytom = context.bytom.clone();
- const isVapor = _bytom.settings.netType === 'vapor'
const _currentBalance = isVapor? _bytom.currentAccount.vpBalances : _bytom.currentAccount.balances
Sentry.configureScope(function(scope) {
<div class="text-align-right">
<div class="value">{{transaction.direct}}{{transaction.val}} {{currentAsset.asset.symbol}}</div>
- <div class="addr color-red" v-if="!transaction.status">
+ <div class="addr color-red" v-if="!transaction.blockHeight">
{{ $t('listAsset.fail') }}
</div>
<div class="addr color-grey" v-else-if="transaction.hasOwnProperty('blockTimestamp')">
text-align: center;
color: rgba(0, 0, 0, 0.88);
margin: 10px 0;
+ white-space: pre;
}
.mnemnonic-box{
</section>
<section >
<div class="mnemnonic-box">
- <span class="mnemonic" v-for="n in inputMnemonic">{{ n }} </span>
+ <span class="mnemonic" v-for="n in inputMnemonic">{{ n }} </span>
</div>
<p class="hint">{{ $t('backup.mnemonicHint') }}</p>
<button class="btn btn-primary" @click="back">{{ $t("backup.ok") }}</button>
return;
}
- let addr
- if(this.netType === 'vapor'){
- addr = newVal.vpAddress
- }else{
- addr = newVal.address
- }
- console.log('currentAccount change', this.netType)
- this.refreshBalance(addr)
+ // let addr
+ // if(this.netType === 'vapor'){
+ // addr = newVal.vpAddress
+ // }else{
+ // addr = newVal.address
+ // }
+ // this.refreshBalance(addr)
},
},
computed: {
bytom.keychain.pairs[this.net][bytom.currentAccount.alias].vpAddress = accounts.address
this[Actions.UPDATE_STORED_BYTOM](bytom).then(() => {
- this.setupRefreshTimer()
+ // this.setupRefreshTimer()
})
return accounts.address
bytom.keychain.pairs[this.net][bytom.currentAccount.alias].vpAddress = accounts.address
this[Actions.UPDATE_STORED_BYTOM](bytom).then(()=>{
- this.setupRefreshTimer()
+ this.refreshBalance(this.address)
})
}).catch(error =>{
let e = error
})
}else{
this[Actions.UPDATE_STORED_BYTOM](bytom).then(()=>{
- this.setupRefreshTimer()
+ this.refreshBalance(this.address)
+ // this.setupRefreshTimer()
})
}
},