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

Milestone 8: Ensure metadata for all possible storage variables is correct #975

Open
xermicus opened this issue Aug 18, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working polkadot Concerns the Polkadot target

Comments

@xermicus
Copy link
Contributor

The polkadot-api allows storage variables to be read without executing any code. This makes it possible to inspect the state of a contract without running any code.

This is currently implemented for primitive types, structs and fixed-size arrays. Mappings and variable length arrays are not implemented. If at all possible, then implement mappings and variable length arrays. It may be necessary to adjust the solang implementation of these types to match the polkadot-api side, alternatively this may require some extensions on the polkadot-api side.

This feature should have tests for all storage types, including primitives, at

https://github.com/hyperledger-labs/solang/tree/main/integration/substrate

Success means that a pull request has had all its review comments addressed and it is merged.

@xermicus xermicus added bug Something isn't working polkadot Concerns the Polkadot target labels Aug 18, 2022
@xermicus xermicus self-assigned this Aug 18, 2022
@xermicus xermicus added this to the ink! v4 compatibility milestone Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working polkadot Concerns the Polkadot target
Projects
None yet
Development

No branches or pull requests

1 participant