chore: backport NewMemStoreService method (#21212)

This commit is contained in:
Marko 2024-08-08 09:53:41 +02:00 committed by GitHub
parent 1cde7541b7
commit 156231be8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}