Expose NewContext, so I can initialize accounts
This commit is contained in:
parent
9ca0501a4b
commit
ff6fbe9e80
|
@ -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,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
|
||||
|
|
Loading…
Reference in New Issue