Open mDuo13 opened 1 year ago
I believe the relevant check is at: https://github.com/XRPLF/rippled/blob/develop/src/ripple/app/paths/PathRequest.cpp#L177-L182
It is documented at https://xrpl.org/path_find.html#request-format in the descriptions for the destination_amount
and send_max
fields, though it isn't entirely clear that mixing them in this way is not allowed.
Hello - I'm a beginner that would like to work on this issue. Could you assign it to me please? @ximinez @intelliot
@scjundev please go ahead and work on this issue - and open a PR when ready.
There's no need to have the issue assigned to you, but I've gone ahead and done so anyway :)
Issue Description
The path_find command returns the error
dstAmtMalformed
when I add asend_max
value to a request that otherwise works fine.Steps to Reproduce
The following path_find returns a set of paths as expected:
(WebSocket Tool Link))
But adding the a
send_max
field to it, which should be valid, causes the command to fail.Request:
(WebSocket Tool Link)
Expected Result
The result should include only paths that spend up to the specified amount of whatever source currency was specified (in this case, XRP—which the successful path find result without
send_max
confirmed was a valid source currency!).If there is an error, the error message should at least point at the correct field. It should not tell me that the
destination_amount
field is invalid if it's valid when I omitsend_max
.Actual Result
The result is the following error:
Environment
Confirmed using the WebSocket tool connected to s1 and xrplcluster.