clean code
This commit is contained in:
parent
f0938dfcb1
commit
314f3ae142
@ -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')
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user