From 314f3ae142725c07069f49cc2b9791a4e09587f1 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 27 Aug 2021 13:13:41 +0800 Subject: [PATCH] clean code --- src/views/OperationTransferComponent.vue | 5 +---- src/views/OperationWithdrawComponent.vue | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/OperationTransferComponent.vue b/src/views/OperationTransferComponent.vue index de8d59f4..7a7ff2ef 100644 --- a/src/views/OperationTransferComponent.vue +++ b/src/views/OperationTransferComponent.vue @@ -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') diff --git a/src/views/OperationWithdrawComponent.vue b/src/views/OperationWithdrawComponent.vue index 0fe4362e..9513cdeb 100644 --- a/src/views/OperationWithdrawComponent.vue +++ b/src/views/OperationWithdrawComponent.vue @@ -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: {