auth and bank compile

This commit is contained in:
Ethan Buchman
2018-01-12 19:17:17 -08:00
committed by Jae Kwon
parent ab438c3f45
commit 5f76febce8
11 changed files with 71 additions and 73 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func (c Context) Value(key interface{}) interface{} {
}
// KVStore fetches a KVStore from the MultiStore.
func (c Context) KVStore(key *KVStoreKey) KVStore {
func (c Context) KVStore(key SubstoreKey) KVStore {
return c.multiStore().GetKVStore(key)
}
@@ -85,7 +85,7 @@ func (c Context) WithProtoMsg(key interface{}, value proto.Message) Context {
return c.withValue(key, value)
}
func (c Context) WithMultiStore(key *KVStoreKey, ms MultiStore) Context {
func (c Context) WithMultiStore(key SubstoreKey, ms MultiStore) Context {
return c.withValue(key, ms)
}
+1 -1
View File
@@ -2,4 +2,4 @@ package types
type Handler func(ctx Context, tx Tx) Result
type AnteHandler func(ctx Context, tx Tx) (result Result, abort bool)
type AnteHandler func(ctx Context, tx Tx) (newCtx Context, result Result, abort bool)