Unverified Commit 01f3e7cf authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix `clippy::upper-case-acronyms` (#697)

* Fix `clippy::upper-case-acronyms`

* Fix typo

* Add `#[cfg(test)]` to get rid of dead code warning
parent f76ecb40
Pipeline #125479 failed with stages
in 8 minutes and 48 seconds
...@@ -411,7 +411,7 @@ impl Dispatch<'_> { ...@@ -411,7 +411,7 @@ impl Dispatch<'_> {
/// ## Example /// ## Example
/// ///
/// Given prefix of `"Message"` and selector with bytes `0xDEADBEEF` we /// 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 /// This way it is clear that this is an ink! generated identifier and even
/// encodes the unique selector bytes to make the identifier unique. /// encodes the unique selector bytes to make the identifier unique.
...@@ -428,7 +428,7 @@ impl Dispatch<'_> { ...@@ -428,7 +428,7 @@ impl Dispatch<'_> {
ir::CallableKind::Constructor => "Constructor", ir::CallableKind::Constructor => "Constructor",
}; };
quote::format_ident!( quote::format_ident!(
"__ink_{}_0x{:02X}{:02X}{:02X}{:02X}", "__ink_{}_0x{:02x}{:02x}{:02x}{:02x}",
prefix, prefix,
selector_bytes[0], selector_bytes[0],
selector_bytes[1], selector_bytes[1],
......
...@@ -200,6 +200,7 @@ macro_rules! fuzz_storage { ...@@ -200,6 +200,7 @@ macro_rules! fuzz_storage {
} }
/// Asserts that the storage is empty, without any leftovers. /// Asserts that the storage is empty, without any leftovers.
#[cfg(test)]
pub fn assert_storage_clean() { pub fn assert_storage_clean() {
let contract_id = let contract_id =
ink_env::test::get_current_contract_account_id::<ink_env::DefaultEnvironment>() ink_env::test::get_current_contract_account_id::<ink_env::DefaultEnvironment>()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment