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!