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

Fix cache deserialisation of BigNumber #38

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

m0ar
Copy link
Contributor

@m0ar m0ar commented Oct 1, 2024

Also improve error serialization to make debugging easier 📿

@m0ar m0ar added the bug Something isn't working label Oct 1, 2024
@m0ar m0ar self-assigned this Oct 1, 2024
Comment on lines +152 to +155
// The BigNumbers are deserialized into objects, which ethers.BigNumber can instantiate from
resolvedEntry[1].forEach((v) => {
v[1] = BigNumber.from(v[1]);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the meat: when deserialising from cache, instantiate as an actual BigNumber object

@m0ar m0ar merged commit bec3927 into develop Oct 1, 2024
1 check passed
@m0ar m0ar deleted the m0ar/hotfix-bignumber-cache-deserialisation branch October 1, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant