Skip to content

Text type on Substrate #15

Closed
Closed

Description

@VictorVicente

Hey, I found this great library and I'm trying to adapt it with to our substrate chain Polymesh.
I'm facing some troubles, maybe you could help me:

  1. Text type from schema.json in Substrate: How should I represent it? Should it be any kind of Vec<>?
  2. It doesn't recognize [u8; 32] on my json. Even when it is present on the default.json file and it's working fine there. Is there anything else I should add to make it work?

Thanks in advance!

Activity

  1. arjanz commented on Apr 18, 2020

    @arjanz
    Contributor
    1. You can use Bytes for a Text type, our codec doesn't make that distinction (yet).

    2. That is odd, [u8; 32] should match the VecU8Length32 decoding class, did you check for spaces etc?

  2. locked and limited conversation to collaborators on Jan 5, 2023
  3. converted this issue into a discussion #98 on Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions