-
Notifications
You must be signed in to change notification settings - Fork 76
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
getDatastoreEntries return empty array when no value #556
getDatastoreEntries return empty array when no value #556
Comments
Still present as of December 2024 |
@peterjah any idea on this bug? Should we priorise it? |
For me it's related to this line: https://github.com/massalabs/massa-web3/blob/dc6018c0f148630a7996f572cf9eb88335497a2e/src/client/publicAPI.ts#L161C7-L161C40 If we want to return null, we should not return But as I'm not a js dev I'll let someone else impl the fix, I'm not sure of the side effects or if I'm 100% right. |
@peterjah WDYT ? |
lets to it! |
I would like to investigate why getDatastoreEntries returns an empty Uint8Array in the final_value while it's supposed to return null.
In the case the key in the smart contract datastore is getting inserted in an operation not final, we should get null.
In the case the key in the smart contract datastore is getting inserted in an operation no executed yet, we should get null.
cc @gregLibert @AurelienFT this is a follow up issue after the late debugging session.
The text was updated successfully, but these errors were encountered: