Skip to content

Serializing and Deserializing args Array ? #3019

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

You must be logged in to vote

It just uses normal JavaScript objects when possible; BigNumber has special detection because it’s a class ethers provides.

To detect an array, you use the JavaScript Array.isArray(v). You will lose any name properties on it, as named parameters are added within the parsing functions.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ilovedesert001
Comment options

@ricmoo
Comment options

@ilovedesert001
Comment options

@ricmoo
Comment options

Answer selected by ilovedesert001
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