Skip to content

Commit

Permalink
Update store/rootmulti/store.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio authored Jan 20, 2021
1 parent 7fdd9cb commit b34e327
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 > int64(math.MaxInt64) {
if height > uint64(math.MaxUint64) {
return sdkerrors.Wrapf(snapshottypes.ErrInvalidMetadata,
"snapshot height %v cannot exceed %v", height, int64(math.MaxInt64))
}
Expand Down

0 comments on commit b34e327

Please sign in to comment.