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

Raw data pointer support for Ceres #733

Closed
michele-franchi opened this issue Apr 18, 2024 · 4 comments · Fixed by #761
Closed

Raw data pointer support for Ceres #733

michele-franchi opened this issue Apr 18, 2024 · 4 comments · Fixed by #761
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@michele-franchi
Copy link
Collaborator

No description provided.

@michele-franchi michele-franchi added this to the Q2 milestone Apr 18, 2024
@janmichek
Copy link
Collaborator

@michele-franchi Can you provide more information about it, please?

@janmichek
Copy link
Collaborator

aeternity/ae_mdw#1708

@janmichek
Copy link
Collaborator

@michele-franchi do you have some findings about this?

@michele-franchi
Copy link
Collaborator Author

@janmichek here's an example of raw data pointers I created:
https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain

with the following NameUpdateTx:

    const nameUpdateTx = await sdk.aensUpdate(name, {
        Pointer1: encode(Buffer.from('example data for pointer 1'), Encoding.Bytearray),
        Pointer2: encode(Buffer.from('example data for pointer 2'), Encoding.Bytearray),
        Pointer3: encode(Buffer.from('example data for pointer 3'), Encoding.Bytearray),
        Pointer4: encode(Buffer.from('example data for pointer 4'), Encoding.Bytearray),
    });

As you can see these pointers are not decoded in different places:

  • Name details, custom pointers (notice the wrong pointer name, there's a comma at the beginning?):
    Image

  • Account details, names tab:
    Image

Custom pointers should be plain text if the value is not a valid blockchain entity. In a custom pointer I can add any string value.

Example mdw call: https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain

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

Successfully merging a pull request may close this issue.

2 participants