Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to get all custom field data in Descriptor #67

Open
ipr0310 opened this issue Sep 13, 2023 · 1 comment
Open

Allow to get all custom field data in Descriptor #67

ipr0310 opened this issue Sep 13, 2023 · 1 comment
Labels
enhancement New feature or request standards The standards module

Comments

@ipr0310
Copy link
Member

ipr0310 commented Sep 13, 2023

Is your feature request related to a problem? Please describe.
In a current scenario, updating any Signum Asset with Mutable Description

i want to only get all custom fields of SRC44 content/description
I am limited to only get one custom field per execution

 descriptorData.getCustomField("X-CUSTOMFIELD")
 /// https://signum-network.github.io/signumjs/classes/standards_src44.descriptordata.html#getcustomfield

Describe the solution you'd like
A method for getting all custom fields from the SRC44 content/description in one execution
Example:

const customFields= descriptorData.getCustomFields();
/// customFields is equal to {x-twitter: ipr010, x-reddit: ipr0310}
@ipr0310 ipr0310 added enhancement New feature or request standards The standards module labels Sep 13, 2023
@ipr0310
Copy link
Member Author

ipr0310 commented Sep 13, 2023

By the time on SignumSwap, i'll be using DescriptorData.merge and DescriptorDataBuilder.createWith methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request standards The standards module
Projects
None yet
Development

No branches or pull requests

1 participant