fix: cancel retrieval deal - disallow negative deal ID
This commit is contained in:
+1
-1
@@ -1996,7 +1996,7 @@ var clientCancelRetrievalDeal = &cli.Command{
|
||||
defer closer()
|
||||
ctx := ReqContext(cctx)
|
||||
|
||||
if cctx.Int64("dealid") <= 0 {
|
||||
if cctx.Int64("dealid") < 0 {
|
||||
return errors.New("deal id cannot be negative")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user