Skip to content

Commit

Permalink
partially revert #8396
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Jan 28, 2021
1 parent 784a9a6 commit 3b92368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ func (rs *Store) Restore(
if height == 0 {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "cannot restore snapshot at height 0")
}
if height > uint64(math.MaxUint64) {
if height > uint64(math.MaxInt64) {
return sdkerrors.Wrapf(snapshottypes.ErrInvalidMetadata,
"snapshot height %v cannot exceed %v", height, int64(math.MaxInt64))
}
Expand Down

0 comments on commit 3b92368

Please sign in to comment.