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

Adapt rand-extension example to pass arguments to the runtime #891

Closed
2 tasks done
cmichi opened this issue Aug 11, 2021 · 0 comments
Closed
2 tasks done

Adapt rand-extension example to pass arguments to the runtime #891

cmichi opened this issue Aug 11, 2021 · 0 comments
Assignees
Labels
A-examples [examples] Work item B-enhancement New feature or request

Comments

@cmichi
Copy link
Collaborator

cmichi commented Aug 11, 2021

This is a question that comes up sometimes. We should illustrate how this can be done in our rand-extension example.

See this Stack Overflow question for more details: How do you pass and handle arguments to a ChainExtension?.

ToDo

  • Pass an argument from ink! into the runtime's chain extension and do something with it there.
  • Answer the Stack Overflow question.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-examples [examples] Work item B-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants