Skip to content

Commit

Permalink
Merge PR #2037: transient store missed to implement store type interface
Browse files Browse the repository at this point in the history
* transientstore missed to implement store type interface

* rename pointer name from rs to ts
  • Loading branch information
HaoyangLiu authored and rigelrozanski committed Sep 9, 2018
1 parent 1a70020 commit 3cf3ab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions store/transientstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}

0 comments on commit 3cf3ab1

Please sign in to comment.