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

Internal data structures returned #4

Open
rvalle opened this issue Jun 21, 2023 · 0 comments
Open

Internal data structures returned #4

rvalle opened this issue Jun 21, 2023 · 0 comments

Comments

@rvalle
Copy link
Collaborator

rvalle commented Jun 21, 2023

Internal data-structures are returned in some cases, for example:

For an open-gov referendum:

{"ayes":"0x0000000000000000004b41759f037253","nays":10000000000000,"support":"0x000000000000000000134c2f52751653"}

The reason is because we should be calling .toHuman() before returning, then the result would look like this:

{"ayes":"21,182,596,688,081,491","nays":"10,000,000,000,000","support":"5,431,790,688,081,491"}

which will be easier to parse.

rvalle pushed a commit to rvalle/node-red-contrib-polkadot that referenced this issue Jun 21, 2023
rvalle added a commit that referenced this issue Jun 21, 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

1 participant