forked from cerc-io/cosmos-explorer
add hidden params checks
This commit is contained in:
parent
d0a9e94733
commit
230fdc1391
@ -381,6 +381,22 @@ export default {
|
||||
},
|
||||
handleOk(bvModalEvt) {
|
||||
bvModalEvt.preventDefault()
|
||||
if (!this.fee) {
|
||||
this.error = 'fee is required'
|
||||
return
|
||||
} if (!this.feeDenom) {
|
||||
this.error = 'fee symbol is required'
|
||||
return
|
||||
} if (!this.accountNumber) {
|
||||
this.error = 'Account number is required'
|
||||
return
|
||||
} if (!this.sequence) {
|
||||
this.error = 'Sequence is required'
|
||||
return
|
||||
} if (!this.chainId) {
|
||||
this.error = 'Chain Id is required'
|
||||
return
|
||||
}
|
||||
this.$refs.simpleRules.validate().then(ok => {
|
||||
if (ok) {
|
||||
this.sendTx().then(ret => {
|
||||
|
Loading…
Reference in New Issue
Block a user