chore: backport NewMemStoreService method (#21212)

This commit is contained in:
Marko authored and GitHub committed 2024-08-08 09:53:41 +02:00
1 parent 1cde7541b7
commit 156231be8a
1 file changed
+4
+4
View File
@@ -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
}