Skip to content

Commit

Permalink
chore: backport NewMemStoreService method (#21212)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Aug 8, 2024
1 parent 1cde754 commit 156231b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ func (k kvStoreService) OpenKVStore(ctx context.Context) store.KVStore {
return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(k.key))
}

func NewMemStoreService(storeKey *storetypes.MemoryStoreKey) store.MemoryStoreService {
return &memStoreService{key: storeKey}
}

type memStoreService struct {
key *storetypes.MemoryStoreKey
}
Expand Down

0 comments on commit 156231b

Please sign in to comment.