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

🐛 [BUG] - BigInt serialization #1557

Open
HiiiiD opened this issue Dec 4, 2024 · 1 comment · May be fixed by #1581
Open

🐛 [BUG] - BigInt serialization #1557

HiiiiD opened this issue Dec 4, 2024 · 1 comment · May be fixed by #1581
Assignees
Milestone

Comments

@HiiiiD
Copy link

HiiiiD commented Dec 4, 2024

Description

In the error package, the JSON.stringify call breaks, if any of the values is a BigInt.

Reproduction URL

No response

Reproduction steps

//Here's a test that can be executed on the repo

test('Should be able to build an error message - bigint', () => {
            const errorMessage = createErrorMessage(
                'simpleMethod',
                'Error message',
                {
                    data: 1n
                }
            );
            expect(errorMessage).toBeDefined();
});

Screenshots

No response

Logs

TypeError: Do not know how to serialize a BigInt
        at JSON.stringify (<anonymous>)

OS

No response

@victhorbi victhorbi added this to the 2.0.0 milestone Dec 10, 2024
@leszek-vechain leszek-vechain linked a pull request Dec 12, 2024 that will close this issue
11 tasks
@leszek-vechain
Copy link
Collaborator

PR with fix: #1581

@victhorbi victhorbi linked a pull request Dec 13, 2024 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants