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

Fix clippy::upper-case-acronyms #697

Merged
merged 3 commits into from Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/lang/codegen/src/generator/dispatch.rs
Expand Up @@ -411,7 +411,7 @@ impl Dispatch<'_> {
/// ## Example
///
/// Given prefix of `"Message"` and selector with bytes `0xDEADBEEF` we
/// generate the following idenfitier: `__ink_Message_0xDEADBEEF`
/// generate the following identifier: `__ink_Message_0xdeadbeef`
///
/// This way it is clear that this is an ink! generated identifier and even
/// encodes the unique selector bytes to make the identifier unique.
Expand All @@ -428,7 +428,7 @@ impl Dispatch<'_> {
ir::CallableKind::Constructor => "Constructor",
};
quote::format_ident!(
"__ink_{}_0x{:02X}{:02X}{:02X}{:02X}",
"__ink_{}_0x{:02x}{:02x}{:02x}{:02x}",
prefix,
selector_bytes[0],
selector_bytes[1],
Expand Down
1 change: 1 addition & 0 deletions crates/storage/src/test_utils.rs
Expand Up @@ -200,6 +200,7 @@ macro_rules! fuzz_storage {
}

/// Asserts that the storage is empty, without any leftovers.
#[cfg(test)]
pub fn assert_storage_clean() {
let contract_id =
ink_env::test::get_current_contract_account_id::<ink_env::DefaultEnvironment>()
Expand Down