From 40f53d9ed3255f28b21c66a7c315ae5329aa18e8 Mon Sep 17 00:00:00 2001 From: Matt Kocubinski Date: Wed, 9 Oct 2024 10:13:54 -0500 Subject: [PATCH] clean up --- runtime/v2/services/genesis.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/v2/services/genesis.go b/runtime/v2/services/genesis.go index 81572a7b0cb0..7e748f562b5c 100644 --- a/runtime/v2/services/genesis.go +++ b/runtime/v2/services/genesis.go @@ -2,6 +2,7 @@ package services import ( "context" + "errors" "fmt" "cosmossdk.io/core/event" @@ -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