Skip to content

How do I use arrays of numbers in v6 as bytes? #4234

Closed Answered by ricmoo
ybbus asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, array of numbers is no longer supported, as they require a lot more validation and were kinda a nuisance to deal with when trying to deduce types (is it an array of numbers? Is it a tuple of things?).

You can still use them though, by passing them into Uint8Array, like new Uint8Array([ 1, 2, 3 ]), but that doesn’t help your situation with JSON.

Make sense? (Moving to discussions ;))

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ybbus
Comment options

You must be logged in to vote
1 reply
@ricmoo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4232 on July 13, 2023 13:40.