diff --git a/internal/state/execution_test.go b/internal/state/execution_test.go index a8ae6c138..cbd55c84d 100644 --- a/internal/state/execution_test.go +++ b/internal/state/execution_test.go @@ -269,7 +269,7 @@ func TestProcessProposal(t *testing.T) { block, err := sf.MakeBlock(state, int64(height), new(types.Commit)) require.NoError(t, err) block.Txs = txs - acceptBlock, err := blockExec.ProcessProposal(ctx, block) + acceptBlock, err := blockExec.ProcessProposal(ctx, block, state) require.NoError(t, err) require.Equal(t, expectAccept, acceptBlock) } diff --git a/internal/state/helpers_test.go b/internal/state/helpers_test.go index 4bebe1a94..f0aed074e 100644 --- a/internal/state/helpers_test.go +++ b/internal/state/helpers_test.go @@ -331,8 +331,8 @@ func (app *testApp) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQue func (app *testApp) ProcessProposal(req abci.RequestProcessProposal) abci.ResponseProcessProposal { for _, tx := range req.Txs { if len(tx) == 0 { - return abci.ResponseProcessProposal{Result: abci.ResponseProcessProposal_REJECT} + return abci.ResponseProcessProposal{Accept: false} } } - return abci.ResponseProcessProposal{Result: abci.ResponseProcessProposal_ACCEPT} + return abci.ResponseProcessProposal{Accept: true} }