Clean up (Test)Externalities.

This commit is contained in:
Gav
2018-01-16 19:07:10 +01:00
parent 74d5be0e80
commit 17c8bad87c
4 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -131,7 +131,7 @@ pub trait Externalities {
fn set_storage(&mut self, key: Vec<u8>, value: Vec<u8>);
/// Get the identity of the chain.
fn chain_id(&self) -> u64 { 42 } // TODO: remove implementation and fix resulting errors.
fn chain_id(&self) -> u64;
/// Get the current set of authorities from storage.
fn authorities(&self) -> Result<Vec<&[u8]>, Self::Error> {
@@ -244,6 +244,8 @@ mod tests {
fn set_storage(&mut self, key: Vec<u8>, value: Vec<u8>) {
self.storage.insert(key, value);
}
fn chain_id(&self) -> u64 { 42 }
}
#[test]