-
Notifications
You must be signed in to change notification settings - Fork 24
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 memory leak cache set item #23
base: master
Are you sure you want to change the base?
Fix memory leak cache set item #23
Conversation
Hi @unparalleled-js 😄 , nice catch, and thanks for the MR! I have checked the submitted code and it might seem to solve the issue but it creates other problems because it limits the size of the "key" to 8 bytes and the C library expects to version the contract address and chain id in the key. See examples in my computer:
What used to be We need to investigate deeper to find why the C lib is creating non-utf8 characters or Python is finding more characters than it should in the string. It would also be great to write tests that catch this issue. |
Wondering if there is any update on this issue or somewhere I can track it. If not, going to look into it more, as would be nice to have it resolved on my end. |
Summary
Fixes a bug preventing the cache from saving an ens address lookup correctly (or at all).
Also fixes a few spelling errors I found when debugging this problem.
Other Information
Addresses an issue I raised earlier today: #22
See the issue for more details!