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

feat: bump number of URLs for a service endpoint to 2 #517

Merged
merged 2 commits into from
May 16, 2023

Conversation

ntn-x2
Copy link
Member

@ntn-x2 ntn-x2 commented May 15, 2023

Fixes https://github.com/KILTprotocol/ticket/issues/2633.

It also removes some unused constants and adjusts the value of the max encoded length for both a service endpoint and a DID key, keeping in mind the additional bytes that a BoundedVec stores along with the actual data. The padding for a service endpoint is added after running the test, since the number of additional bytes depends on the encoding of the maximum limit for it. Tests as they are run now should ALWAYS catch any changes in this value.

@ntn-x2 ntn-x2 requested review from weichweich and Ad96el May 15, 2023 16:17
@ntn-x2 ntn-x2 self-assigned this May 15, 2023
Copy link
Member

@Ad96el Ad96el left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Learned something new with max_encoded_len. The function looks useful.

@ntn-x2 ntn-x2 merged commit 0b8f5d9 into develop May 16, 2023
@ntn-x2 ntn-x2 deleted the aa/did-services-bump branch May 16, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants