Skip to content

Commit

Permalink
err not found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Sep 19, 2024
1 parent 6410db7 commit 7b30e32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (

"github.com/dymensionxyz/dymint/types"
pb "github.com/dymensionxyz/dymint/types/pb/dymint"
"github.com/dymensionxyz/gerr-cosmos/gerrc"
)

var (
Expand Down Expand Up @@ -289,7 +288,7 @@ func (s *DefaultStore) SaveBlockCid(height uint64, cid cid.Cid, batch KVBatch) (
func (s *DefaultStore) LoadBlockCid(height uint64) (cid.Cid, error) {
cidBytes, err := s.db.Get(getCidKey(height))
if err != nil {
return cid.Undef, fmt.Errorf("load cid for height %v: %w", height, gerrc.ErrNotFound)
return cid.Undef, fmt.Errorf("load cid for height %v: %w", height, err)
}
parsedCid, err := cid.Parse(string(cidBytes))
if err != nil {
Expand Down

0 comments on commit 7b30e32

Please sign in to comment.