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

Conway [12.0.0-alpha.4] - Anchor URL limited to 64 chars #641

Closed
Ryun1 opened this issue Sep 8, 2023 · 2 comments
Closed

Conway [12.0.0-alpha.4] - Anchor URL limited to 64 chars #641

Ryun1 opened this issue Sep 8, 2023 · 2 comments

Comments

@Ryun1
Copy link

Ryun1 commented Sep 8, 2023

Using Conway Alpha Build: @emurgo/[email protected].

When running:

    const dataHash = CSL.AnchorDataHash.from_hex("9bba8233cdd086f0325daba465d568a88970d42536f9e71e92a80d5922ded885");
    const url = CSL.URL.new("https://raw.githubusercontent.com/Ryun1/gov-metadata/main/governace-action/metadata.jsonld");
    const anchor = CSL.Anchor.new(url, dataHash);

I get:
Deserialization failed in URL because: Out of range: 90 - must be in range 0 - 64

Describe the bug

  • The new Anchor URLs are limited to 64 characters in length.
  • Attempting to add a URL to an anchor that is longer than 64 chars causes the above error.

Expected behaviour

  • Anchor URL character limit is much higher and would thus allow longer URLs.
@lisicky
Copy link
Contributor

lisicky commented Sep 8, 2023

@Ryun1
Copy link
Author

Ryun1 commented Sep 8, 2023

Oh that is an unfortunate restriction! -- thank you

@Ryun1 Ryun1 closed this as completed Sep 8, 2023
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

No branches or pull requests

2 participants