Fix tests.

This commit is contained in:
Gav
2018-01-19 16:34:28 +01:00
parent c29313c618
commit 262dd7bc55
3 changed files with 103 additions and 9 deletions
@@ -9,6 +9,8 @@ pub trait Storable {
fn store(&self, key: &[u8]);
}
// TODO: consider using blake256 to avoid possible eclipse attack.
pub fn kill(key: &[u8]) { runtime_support::set_storage(&twox_128(key)[..], b""); }
impl<T: Default + Sized + EndianSensitive> Storable for T {