Skip to content

Conversation

jacogr
Copy link

@jacogr jacogr commented Nov 27, 2021

This change is as the result of a CI failure where bigint values are in-use -

https://github.com/LedgerHQ/ledger-live-desktop/runs/4325584600?check_suite_focus=true#step:13:92

Some background reading here - https://dev.to/benlesh/bigint-and-json-stringify-json-parse-2m8p

In this approach instead of adding a replacer, the typeof is just checked and then toString() is used on the value if found to be a bigint.

Allow for bigint values in JSON.stringify
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

Successfully merging this pull request may close these issues.

1 participant