add hidden params checks

This commit is contained in:
liangping 2022-09-12 20:50:24 +08:00
parent d0a9e94733
commit 230fdc1391

View File

@ -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 => {