diff --git a/src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs b/src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs index 2495109606..d3632c6c72 100644 --- a/src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs +++ b/src/Neo/Extensions/Persistence/ReadOnlyViewExtensions.cs @@ -125,7 +125,7 @@ public static class ReadOnlyViewExtensions /// /// Thrown when is all 0xff and is less than or equal to 0. /// - internal static byte[] GetSeekPrefix(this byte[]? keyPrefix, int maxSizeWhenAll0xff = 4096 /* make it long enough */) + internal static byte[] GetSeekPrefix(this byte[]? keyPrefix, ushort maxSizeWhenAll0xff = 4096 /* make it long enough */) { if (keyPrefix == null) // Backwards seek for null prefix is not supported for now. throw new ArgumentNullException(nameof(keyPrefix));