Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Oct 9, 2024
1 parent 10fcb68 commit 40f53d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/v2/services/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package services

import (
"context"
"errors"
"fmt"

"cosmossdk.io/core/event"
Expand Down Expand Up @@ -112,11 +113,11 @@ type readonlyKVStore struct {
}

func (r readonlyKVStore) Set(key, value []byte) error {
panic("tried to call Set on a readonly store")
return errors.New("tried to call Set on a readonly store")
}

func (r readonlyKVStore) Delete(key []byte) error {
panic("tried to call Delete on a readonly store")
return errors.New("tried to call Delete on a readonly store")
}

// GenesisHeaderService is a header.Service implementation that is used during
Expand Down

0 comments on commit 40f53d9

Please sign in to comment.