Skip to content

Commit

Permalink
fixed storeKey singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Sep 23, 2024
1 parent 89f7411 commit d5da671
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 d5da671

Please sign in to comment.