mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix "limit" mishandling in doBookOffers
This commit is contained in:
@@ -1523,9 +1523,9 @@ Json::Value RPCHandler::doBookOffers (Json::Value params, Resource::Charge& load
|
||||
return RPC::make_error (rpcBAD_MARKET);
|
||||
}
|
||||
|
||||
if (params.isMember ("limit") && ! params ["limit"].isUInt())
|
||||
if (params.isMember ("limit") && ! params ["limit"].isIntegral())
|
||||
return RPC::expected_field_error (
|
||||
"taker_pays.currency", "unsigned integer");
|
||||
"limit", "integer");
|
||||
|
||||
unsigned int const iLimit (params.isMember ("limit")
|
||||
? params ["limit"].asUInt ()
|
||||
|
||||
Reference in New Issue
Block a user