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}

Check warning on line 108 in app/proposal.go

View check run for this annotation

Codecov / codecov/patch

app/proposal.go#L107-L108

Added lines #L107 - L108 were not covered by tests
}

return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}

Check warning on line 111 in app/proposal.go

View check run for this annotation

Codecov / codecov/patch

app/proposal.go#L111

Added line #L111 was not covered by tests
Expand Down

0 comments on commit 42eab7d

Please sign in to comment.