XRPLF / xrpl-dev-portal

Source code for xrpl.org including developer documentation
https://xrpl.org
Other
533 stars 1.02k forks source link

ledger_entry with mismatch type #1888

Closed mounikakun closed 1 year ago

mounikakun commented 1 year ago

ledger_entry with value of type deposit_preauth and type as check is not returning error for Clio.

sample request: { "method": "ledger_entry", "params": [ { "check": "3206D4B805561DE4E97AE5D078606F03AE313E34EB72B869A07B0E92DA1B8B28", "ledger_index": "validated" } ] }

clio response: { "result": { "index": "3206D4B805561DE4E97AE5D078606F03AE313E34EB72B869A07B0E92DA1B8B28", "ledger_hash": "76E0EF0CAE8F7FB9F2FCBCBB163A907366DF4B46FF19B70511CD05D9EEB05A91", "ledger_index": 27881476, "node": { "Account": "rD1jD9ecGyaMwWRcn7upL1gxLwQcKSZBu1", "Authorize": "rnCqy3NXoMq7CeAigCtwZN3Zt76f4wgyX5", "Flags": 0, "LedgerEntryType": "DepositPreauth", "OwnerNode": "0", "PreviousTxnID": "545A83511FF8C14819B02A08358C6C127F977B300F8FB17A475EEA803E667E40", "PreviousTxnLgrSeq": 27881433, "index": "3206D4B805561DE4E97AE5D078606F03AE313E34EB72B869A07B0E92DA1B8B28" }, "validated": true, "status": "success" }, "warnings": [ { "id": 2001, "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request" } ] }

Rippled response: { "result": { "error": "unexpectedLedgerType", "ledger_hash": "59FE0CAFBE41B3717BD3957698FEEE0F39EB36C0CA0658105DBF18D1EAD52049", "ledger_index": 27881479, "request": { "check": "3206D4B805561DE4E97AE5D078606F03AE313E34EB72B869A07B0E92DA1B8B28", "command": "ledger_entry", "ledger_index": "validated" }, "status": "error", "validated": true } }

mounikakun commented 1 year ago

By mistake created issued in xrpl-dev-portal.