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

View File

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