diff --git a/src/components/popups/ProposalDeposit.vue b/src/components/popups/ProposalDeposit.vue index e2b1784..346cf09 100644 --- a/src/components/popups/ProposalDeposit.vue +++ b/src/components/popups/ProposalDeposit.vue @@ -81,7 +81,7 @@ const signDeposit = async (isCLI = false) => { try { transacting.value = true; const depot = await depositProposal(depositOptions, isCLI); - if ((depot as DeliverTxResponse).code !== 0) { + if ((depot as DeliverTxResponse).code !== 0 && !isCLI) { errorMsg.value = (depot as DeliverTxResponse).rawLog ?? toPlainObjectString(depot); displayState.value = "error"; } else { diff --git a/src/components/popups/ProposalVote.vue b/src/components/popups/ProposalVote.vue index 656cf13..7f831c0 100644 --- a/src/components/popups/ProposalVote.vue +++ b/src/components/popups/ProposalVote.vue @@ -126,7 +126,7 @@ const signVote = async (isCLI = false) => { try { transacting.value = true; const vote = await (voteOptions && voteProposalFunc(voteOptions, isCLI)); - if ((vote as DeliverTxResponse).code !== 0) { + if ((vote as DeliverTxResponse).code !== 0 && !isCLI) { errorMsg.value = (vote as DeliverTxResponse).rawLog ?? toPlainObjectString(vote); displayState.value = "error"; } else { diff --git a/src/utility/commandBuilder.ts b/src/utility/commandBuilder.ts index f9f4d8e..2baa0e8 100644 --- a/src/utility/commandBuilder.ts +++ b/src/utility/commandBuilder.ts @@ -42,7 +42,7 @@ export default class CommandBuilder { return this; } finish() { - this.command.push("-fees"); + this.command.push("--fees"); let feeString = ""; for (let i = 0; i < this.fees.length; i++) { feeString = feeString + this.fees[i].amount + this.fees[i].denom; @@ -56,7 +56,7 @@ export default class CommandBuilder { this.command.push(this.address); this.command.push("--chain-id"); this.command.push(this.chainId); - this.command.push("--output-document"); + this.command.push(">"); this.command.push("tx.unsigned.json"); return this.command.join(" "); }