Expose NewContext, so I can initialize accounts

This commit is contained in:
Ethan Frey 2018-01-29 13:55:28 +01:00
parent 9ca0501a4b
commit ff6fbe9e80
2 changed files with 3 additions and 3 deletions

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.

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