Skip to content

Commit

Permalink
Made StoreKey singleton (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 authored Sep 24, 2024
1 parent 3c142f7 commit 767e5b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/node-core/pkg/components/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 767e5b9

Please sign in to comment.