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
commit c3c5fd7482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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