Skip to content

Commit

Permalink
reject on err
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed May 3, 2024
1 parent 7a67f55 commit 42eab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler {
func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler {
return func(ctx sdk.Context, req abci.RequestProcessProposal) abci.ResponseProcessProposal {
if err := h.ValidateTransactions(req.Txs); err != nil {
panic(err)
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
}

return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}
Expand Down

0 comments on commit 42eab7d

Please sign in to comment.