From 767e5b99d86f501f3cc11ef87b69b9fcb6ca8660 Mon Sep 17 00:00:00 2001 From: Alberto Benegiamo Date: Tue, 24 Sep 2024 22:43:49 +0200 Subject: [PATCH] Made StoreKey singleton (#2018) --- mod/node-core/pkg/components/depinject.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/node-core/pkg/components/depinject.go b/mod/node-core/pkg/components/depinject.go index c137d2d966..58bcf24bd8 100644 --- a/mod/node-core/pkg/components/depinject.go +++ b/mod/node-core/pkg/components/depinject.go @@ -28,8 +28,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) +//nolint:gochecknoglobals // storeKey is a singleton. +var storeKey = storetypes.NewKVStoreKey("beacon") + func ProvideKVStoreKey() **storetypes.KVStoreKey { - storeKey := storetypes.NewKVStoreKey("beacon") return &storeKey }