diff --git a/test/e2e/app/app.go b/test/e2e/app/app.go index d424199e3..6c185aaaf 100644 --- a/test/e2e/app/app.go +++ b/test/e2e/app/app.go @@ -331,7 +331,7 @@ func (app *Application) PrepareProposal(req abci.RequestPrepareProposal) abci.Re extCount++ } // We only generate our special transaction if we have vote extensions - if extCount > 0 { + if extCount > 0 && len(req.Txs) > 0 { extTxPrefix := fmt.Sprintf("%s=", voteExtensionKey) extTx := []byte(fmt.Sprintf("%s%d", extTxPrefix, sum)) app.logger.Info("preparing proposal with custom transaction from vote extensions", "tx", extTx)