Skip to content

Commit

Permalink
Update store/v2/root/store.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marko <marko@baricevic.me>
  • Loading branch information
randygrok and tac0turtle authored Jan 7, 2025
1 parent ff4ef84 commit e6e4ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/v2/root/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (s *Store) Query(storeKey []byte, version uint64, key []byte, prove bool) (
var cs store.Committer
// if is V2 means that the store is using iavlv2, it has been migrated from iavlv1 to iavlv2
if v2Commitment, isV2 := s.stateCommitment.(*commitment.CommitStore); isV2 {
// if the store is a v2 store, we need to check if the version is less than or equal to the v2 migration height
// if the commitment structure is iavlv2 store, we need to check if the version is less than or equal to the v2 migration height
v2UpgradeHeight, err := v2Commitment.GetV2MigrationHeight()
if err != nil {
return store.QueryResult{}, fmt.Errorf("failed to get v2 migration height: %w", err)
Expand Down

0 comments on commit e6e4ee7

Please sign in to comment.