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

Drink backend: allow for arbitrary runtime #1892

Merged

Conversation

pmikolajczyk41
Copy link
Member

Make drink_client::Client generic over runtime and allow choosing runtime in the e2e test macro.

@@ -73,5 +73,22 @@ pub mod flipper {

Ok(())
}

/// Just instantiate a contract using non-default runtime.
#[ink_e2e::test(backend = "runtime-only", runtime = drink::runtime::MinimalRuntime)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you do?

Suggested change
#[ink_e2e::test(backend = "runtime-only", runtime = drink::runtime::MinimalRuntime)]
#[ink_e2e::test(backend = "runtime-only", runtime = ::ink_e2e::MinimalRuntime)]

Copy link
Member Author

Choose a reason for hiding this comment

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

oh sure, that's why I reexported it (but somehow I forgot about it here...); fixed

…time

# Conflicts:
#	crates/ink/tests/ui/contract/fail/message-returns-non-codec.stderr
#	crates/ink/tests/ui/trait_def/fail/message_output_non_codec.stderr
@@ -221,10 +227,12 @@ impl<
}
};

let code_hash_raw: [u8; 32] = result.code_hash.as_ref().try_into().expect("");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Empty string in expect("")

Copy link
Member Author

Choose a reason for hiding this comment

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

must have missed it; fixed

@ascjones ascjones merged commit 5657a22 into use-ink:master Sep 8, 2023
22 checks passed
@pmikolajczyk41 pmikolajczyk41 deleted the drink-arbitrary-runtime branch September 8, 2023 14:56
@SkymanOne SkymanOne mentioned this pull request Mar 4, 2024
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