Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

minor fix and improvements on localkeystore #7626

Merged
4 commits merged into from
Dec 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing tests
  • Loading branch information
gnunicorn committed Nov 30, 2020
commit baf0eea957205c700fa2309bf3c4a687f441b64f
4 changes: 3 additions & 1 deletion client/keystore/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ mod tests {
str::FromStr,
};

const TEST_KEY_TYPE: KeyTypeId = KeyTypeId(*b"test");
rakanalh marked this conversation as resolved.
Show resolved Hide resolved

impl KeystoreInner {
fn insert_ephemeral_from_seed<Pair: AppPair>(&mut self, seed: &str) -> Result<Pair> {
self.insert_ephemeral_from_seed_by_type::<Pair::Generic>(seed, Pair::ID).map(Into::into)
Expand All @@ -517,7 +519,7 @@ mod tests {
})
}

fn generate<Pair: AppPair>(&self) -> Result<Pair> {
fn generate<Pair: AppPair>(&mut self) -> Result<Pair> {
self.generate_by_type::<Pair::Generic>(Pair::ID).map(Into::into)
}
}
Expand Down