Merge PR #2037: transient store missed to implement store type interface

* transientstore missed to implement store type interface

* rename pointer name from rs to ts
This commit is contained in:
HaoyangLiu 2018-09-09 08:47:36 +08:00 committed by Rigel
parent 1a700206b8
commit 3cf3ab11b0

View File

@ -2,6 +2,7 @@ package store
import (
dbm "github.com/tendermint/tendermint/libs/db"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ KVStore = (*transientStore)(nil)
@ -41,3 +42,8 @@ func (ts *transientStore) Prefix(prefix []byte) KVStore {
func (ts *transientStore) Gas(meter GasMeter, config GasConfig) KVStore {
return NewGasKVStore(meter, config, ts)
}
// Implements Store.
func (ts *transientStore) GetStoreType() StoreType {
return sdk.StoreTypeTransient
}