From 2d1f479a884099519baad84e02a230cc5ca25fca Mon Sep 17 00:00:00 2001 From: huangyi Date: Tue, 27 Aug 2024 16:15:38 +0800 Subject: [PATCH] fix error return --- baseapp/abci_utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/baseapp/abci_utils.go b/baseapp/abci_utils.go index fef240a4aa36..8afb12050df2 100644 --- a/baseapp/abci_utils.go +++ b/baseapp/abci_utils.go @@ -359,6 +359,10 @@ func (h *DefaultProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHan return true }) + if err != nil { + return nil, err + } + return &abci.PrepareProposalResponse{Txs: h.txSelector.SelectedTxs(ctx)}, nil } }