clean code

This commit is contained in:
liangping 2021-08-27 13:13:41 +08:00
parent f0938dfcb1
commit 314f3ae142
2 changed files with 4 additions and 7 deletions

View File

@ -417,8 +417,6 @@ export default {
chainId: this.chainId, chainId: this.chainId,
} }
console.log('tx:', txMsgs)
sign( sign(
this.wallet, this.wallet,
this.chainId, this.chainId,
@ -427,8 +425,7 @@ export default {
txFee, txFee,
this.memo, this.memo,
signerData, signerData,
).then((bodyBytes, s) => { ).then(bodyBytes => {
console.log('signed: ', bodyBytes, s)
this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => { this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => {
setLocalTxHistory({ op: 'send', hash: res.txhash, time: new Date() }) setLocalTxHistory({ op: 'send', hash: res.txhash, time: new Date() })
this.$bvModal.hide('transfer-window') this.$bvModal.hide('transfer-window')

View File

@ -158,7 +158,7 @@ import chainAPI from '@/libs/fetch'
import ToastificationContent from '@core/components/toastification/ToastificationContent.vue' import ToastificationContent from '@core/components/toastification/ToastificationContent.vue'
export default { export default {
name: 'TransforDialogue', name: 'WithdrawDialogue',
components: { components: {
BModal, BModal,
BRow, BRow,
@ -340,8 +340,8 @@ export default {
signerData, signerData,
).then(bodyBytes => { ).then(bodyBytes => {
this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => { this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => {
setLocalTxHistory({ op: 'delegate', hash: res.tx_response.txhash, time: new Date() }) setLocalTxHistory({ op: 'withdraw', hash: res.tx_response.txhash, time: new Date() })
this.$bvModal.hide('delegate-window') this.$bvModal.hide('withdraw-window')
this.$toast({ this.$toast({
component: ToastificationContent, component: ToastificationContent,
props: { props: {