Skip to content

Conversation

@pmikolajczyk41
Copy link
Contributor

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

}

/// 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
Contributor 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
}
};

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
Contributor 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
@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.

3 participants