XRPLF / xrpl-py

A Python library to interact with the XRP Ledger (XRPL) blockchain
ISC License
144 stars 83 forks source link

Delete data, URI, DIDDocument fields in DID object #716

Closed ckeshava closed 1 day ago

ckeshava commented 2 weeks ago

It is not possible to delete Data, URI and DIDDocument fields in a DID object. Users encounter a "data" : "Must be a hex" error. This is contrary to the expected behavior in the docs:

Note: To delete the Data, DIDDocument, or URI field from an existing DID ledger entry, add the field as an empty string.

Source: https://xrpl.org/docs/references/protocol/transactions/types/didset/

A unit test to reproduce this issue can be found at the tip of this branch: https://github.com/ckeshava/xrpl-py/tree/DIDemptyData

Many thanks to this Discord user (0xΞarl) for bringing this to our attention: https://discord.com/channels/886050993802985492/886095603669544991/1251546703602126888