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: 🚑 resolve double stringify #991

Merged
merged 3 commits into from
Oct 12, 2023
Merged

fix: 🚑 resolve double stringify #991

merged 3 commits into from
Oct 12, 2023

Conversation

james-a-morris
Copy link
Contributor

The RedisCache introduced a double JSON.stringify and a JSON.parse issue. These ran fine in an isolated environment because JSON.parse(JSON.parse(JSON.stringify(JSON.stringify(X)))) will compute fine, but key/values clashed with our existing cache.

This new hot fix removes the double JSON.stringify issue that was present with the merge of the latest PR.

The cache should be cleared for good measure.

This was tested using a relayer iteration and a dataworker interation with a lookback of 16 bundles.

Copy link
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

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

One question

src/utils/DepositUtils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

Looks great! Just one question about the error part

src/utils/DepositUtils.ts Outdated Show resolved Hide resolved
@james-a-morris james-a-morris merged commit c75b5f6 into master Oct 12, 2023
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.

3 participants