light: avoid panic for integer underflow (#7589)

This commit is contained in:
Sam Kleinman
2022-01-14 09:58:41 -05:00
committed by GitHub
parent 9409cdea55
commit 159d763422
2 changed files with 8 additions and 13 deletions
+1 -3
View File
@@ -16,9 +16,7 @@ type proxyService struct {
*lrpc.Client
}
func (p proxyService) ABCIQuery(ctx context.Context, path string, data tmbytes.HexBytes,
height int64, prove bool) (*coretypes.ResultABCIQuery, error) {
func (p proxyService) ABCIQuery(ctx context.Context, path string, data tmbytes.HexBytes, height int64, prove bool) (*coretypes.ResultABCIQuery, error) {
return p.ABCIQueryWithOptions(ctx, path, data, rpcclient.ABCIQueryOptions{
Height: height,
Prove: prove,