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
how to use chain extensions to read/write runtime storage #640
Comments
An example is given in the docs here: https://paritytech.github.io/ink/ink_lang/attr.chain_extension.html#example-definition |
when I compile, get error use-ink/cargo-contract#158 |
As metntioned in that issue the |
but it will be compiled to wasm.... have another solution? |
I have met the same problem, waiting for a solution. Thanks. |
The If you did require the |
when compile, got cargo +nightly contract build
ERROR: Error invoking `cargo metadata`
Caused by:
failed to run `cargo metadata`: error: failed to parse manifest at `/Users/galaio/RustProjects/kylin-node/contracts/get_prices/Cargo.toml`
Caused by:
feature `std` includes `scale-info`, but `scale-info` is not an optional dependency
A non-optional dependency of the same name is defined; consider adding `optional = true` to its definition.
It seems scale-info is neccessary; |
can ink give some compilable and runable example, like the example in ink/examples, https://github.com/paritytech/ink/tree/master/examples |
No the error tells you to remove
We will be providing an example in the future! :) |
when? |
Since the chain extension feature needs to be orchestrated between ink! and the contracts-pallet from Substrate we plan on delivering such an example and documentation with cross-concerns (not only for ink!) as soon as we ship the orchestrated release between contracts-pallet 3.0 and ink! 3.0 which is expected to happen in roughly 2 weeks without guarantee. |
hi, How's it going? |
what version of pallet contract?not found in substrate v2.0.1 |
it uses ink! |
This seems pretty stale. @galaio feel free to re-open if you think this is unresolved |
can give a example in ink/examples, and compile with cargo-contract
rel #592
The text was updated successfully, but these errors were encountered: