feat(runtime): Add missing NewTransientStoreService (backport #20261) (#20327)

Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2024-05-09 11:46:51 +00:00 committed by GitHub
parent a2d3b2a6e5
commit 9f8e3a58d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,10 @@ func (m memStoreService) OpenMemoryStore(ctx context.Context) store.KVStore {
return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(m.key))
}
func NewTransientStoreService(storeKey *storetypes.TransientStoreKey) store.TransientStoreService {
return &transientStoreService{key: storeKey}
}
type transientStoreService struct {
key *storetypes.TransientStoreKey
}