Merge pull request #399 from cosmos/feature/init-account

Expose NewContext, so I can initialize accounts
This commit is contained in:
Ethan Buchman
2018-02-06 13:43:35 -05:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ func (app *BaseApp) runTx(isCheckTx bool, txBytes []byte, tx sdk.Tx) (result sdk
}
// Construct a Context.
var ctx = app.newContext(isCheckTx, txBytes)
var ctx = app.NewContext(isCheckTx, txBytes)
// TODO: override default ante handler w/ custom ante handler.
+2 -2
View File
@@ -2,10 +2,10 @@ package baseapp
import sdk "github.com/cosmos/cosmos-sdk/types"
// Returns a new Context suitable for AnteHandler (and indirectly Handler) processing.
// NewContext returns a new Context suitable for AnteHandler (and indirectly Handler) processing.
// NOTE: txBytes may be nil to support TestApp.RunCheckTx
// and TestApp.RunDeliverTx.
func (app *BaseApp) newContext(isCheckTx bool, txBytes []byte) sdk.Context {
func (app *BaseApp) NewContext(isCheckTx bool, txBytes []byte) sdk.Context {
var store sdk.MultiStore
if isCheckTx {
store = app.msCheck