Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Sep 16, 2024
1 parent 80db042 commit 57ec239
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/v2/services/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"cosmossdk.io/core/store"
)

var _ store.KVStoreService = (*GenesisKVStoreServie)(nil)
var _ store.KVStoreService = (*GenesisKVStoreService)(nil)

type genesisContextKeyType struct{}

Expand Down Expand Up @@ -36,23 +36,23 @@ func (g *genesisContext) Run(
return g.state, nil
}

type GenesisKVStoreServie struct {
type GenesisKVStoreService struct {
actor []byte
executionService store.KVStoreService
}

func NewGenesisKVService(
actor []byte,
execution store.KVStoreService,
) *GenesisKVStoreServie {
return &GenesisKVStoreServie{
) *GenesisKVStoreService {
return &GenesisKVStoreService{
actor: actor,
executionService: execution,
}
}

// OpenKVStore implements store.KVStoreService.
func (g *GenesisKVStoreServie) OpenKVStore(ctx context.Context) store.KVStore {
func (g *GenesisKVStoreService) OpenKVStore(ctx context.Context) store.KVStore {
v := ctx.Value(genesisContextKey)
if v == nil {
return g.executionService.OpenKVStore(ctx)
Expand Down

0 comments on commit 57ec239

Please sign in to comment.