cosmos-sdk/baseapp/state.go

22 lines
431 B
Go

package baseapp
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
type state struct {
ms sdk.CacheMultiStore
ctx sdk.Context
}
// CacheMultiStore calls and returns a CacheMultiStore on the state's underling
// CacheMultiStore.
func (st *state) CacheMultiStore() sdk.CacheMultiStore {
return st.ms.CacheMultiStore()
}
// Context returns the Context of the state.
func (st *state) Context() sdk.Context {
return st.ctx
}