You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the documentation,
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
invalidHotWallet - One or more of the addresses specified in the hotwallet field is not the Address of an account holding currency issued by the account from the request.
gateway_balances with malformed hotwallet account should return invalidParams instead of invalidHotWallet
gateway_balances
* When `account` does not exist in the ledger, return `actNotFound`
* (Previously, a normal response was returned)
* Fix#4290
* When required field(s) are missing, return `invalidParams`
* (Previously, `invalidHotWallet` was incorrectly returned)
* Fix#4548
channel_authorize
* When the specified `key_type` is invalid, return `badKeyType`
* (Previously, `invalidParams` was returned)
* Fix#4289
Since these are breaking changes, they apply only to API version 2.
Supersedes #4577
ckeshava
pushed a commit
to ckeshava/rippled
that referenced
this issue
Sep 22, 2023
gateway_balances
* When `account` does not exist in the ledger, return `actNotFound`
* (Previously, a normal response was returned)
* FixXRPLF#4290
* When required field(s) are missing, return `invalidParams`
* (Previously, `invalidHotWallet` was incorrectly returned)
* FixXRPLF#4548
channel_authorize
* When the specified `key_type` is invalid, return `badKeyType`
* (Previously, `invalidParams` was returned)
* FixXRPLF#4289
Since these are breaking changes, they apply only to API version 2.
Supersedes XRPLF#4577
Issue Description
As per the documentation,
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
invalidHotWallet - One or more of the addresses specified in the hotwallet field is not the Address of an account holding currency issued by the account from the request.
gateway_balances with malformed hotwallet account should return
invalidParams
instead ofinvalidHotWallet
Steps to Reproduce
Request:
{ "method": "gateway_balances", "params": [ { "account": "rPMeLRzDEBb2S8kSwynm1if6j6N58xQtv7", "hotwallet": [ "rhKKk5KB8LuxmjvTSA7r3iYmJXGqnno7M" ], "ledger_index": "validated", "strict": true } ] }
Expected Result
invalidParams
Actual Result
invalidHotWallet
Environment
Supporting Files
The text was updated successfully, but these errors were encountered: