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

Runtime creator #85

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Runtime creator #85

merged 3 commits into from
Nov 21, 2023

Conversation

pmikolajczyk41
Copy link
Member

We introduce a new macro create_minimal_runtime, which generates a minimal runtime with custom name and custom chain extension parameter. It can be used outside drink as well, but you also have to add frame-system and frame-support as dependencies (due to how construct_runtime macro works...).

This is a prerequisite for supporting chain extensions in drink.

($name:ident) => {
create_minimal_runtime!($name, ());
};
($name:ident, $chain_extension: ty) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI use-ink/ink#1958

@pmikolajczyk41 pmikolajczyk41 merged commit d5c5706 into main Nov 21, 2023
2 checks passed
@pmikolajczyk41 pmikolajczyk41 deleted the runtime-creator branch November 21, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants