Skip to content

Commit

Permalink
remove pub from methods
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajbouw committed May 21, 2021
1 parent fb3ca77 commit 77ba897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub fn storage_to_key(address: &Address, key: &H256, generation: u32) -> Storage
}

#[allow(dead_code)]
pub fn normal_storage_key(address: &Address, key: &H256) -> [u8; 54] {
fn normal_storage_key(address: &Address, key: &H256) -> [u8; 54] {
let mut result = [0u8; 54];
result[0] = VersionPrefix::V1 as u8;
result[1] = KeyPrefix::Storage as u8;
Expand All @@ -88,7 +88,7 @@ pub fn normal_storage_key(address: &Address, key: &H256) -> [u8; 54] {
}

#[allow(dead_code)]
pub fn generation_storage_key(address: &Address, key: &H256, generation: u32) -> [u8; 58] {
fn generation_storage_key(address: &Address, key: &H256, generation: u32) -> [u8; 58] {
let mut result = [0u8; 58];
result[0] = VersionPrefix::V1 as u8;
result[1] = KeyPrefix::Storage as u8;
Expand Down

0 comments on commit 77ba897

Please sign in to comment.