-
Notifications
You must be signed in to change notification settings - Fork 430
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
Drink backend: allow for arbitrary runtime #1892
Conversation
@@ -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)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you do?
#[ink_e2e::test(backend = "runtime-only", runtime = drink::runtime::MinimalRuntime)] | |
#[ink_e2e::test(backend = "runtime-only", runtime = ::ink_e2e::MinimalRuntime)] |
There was a problem hiding this comment.
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
crates/e2e/src/drink_client.rs
Outdated
@@ -221,10 +227,12 @@ impl< | |||
} | |||
}; | |||
|
|||
let code_hash_raw: [u8; 32] = result.code_hash.as_ref().try_into().expect(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty string in expect("")
There was a problem hiding this comment.
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
Make
drink_client::Client
generic over runtime and allow choosing runtime in the e2e test macro.