Apply suggestions from code review

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
William Banfield
2022-03-14 17:56:04 -04:00
committed by GitHub
co-authored by M. J. Fromberger
parent 747eb86de8
commit 1dce618a65
2 changed files with 16 additions and 14 deletions
+2 -4
View File
@@ -300,10 +300,8 @@ func (app *Application) ApplySnapshotChunk(req abci.RequestApplySnapshotChunk) a
}
func (app *Application) PrepareProposal(req abci.RequestPrepareProposal) abci.ResponsePrepareProposal {
// None of the transactions are modified by the application, return a ResponsePrepareProposal
// with ModifiedTx set to false. false is the zero-value in go, so an empty ResponsePrepareProposal
// will set the field appropriately.
return abci.ResponsePrepareProposal{}
// None of the transactions are modified by this application.
return abci.ResponsePrepareProposal{ModifiedTx: false}
}
// ProcessProposal implements part of the Application interface.