Add migration for transaction-payment (#5673)

This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-04-17 09:56:17 +02:00
1 parent c5c9b56e94
commit 276b27a7d4
5 files changed
+51 -4

No files matched your search

@@ -159,7 +159,7 @@ pub fn get_storage_value<T: Decode + Sized>(module: &[u8], item: &[u8], hash: &[
frame_support::storage::unhashed::get::<T>(&key)
}
/// Get a particular value in storage by the `module`, the map's `item` name and the key `hash`.
/// Take a particular value in storage by the `module`, the map's `item` name and the key `hash`.
pub fn take_storage_value<T: Decode + Sized>(module: &[u8], item: &[u8], hash: &[u8]) -> Option<T> {
let mut key = vec![0u8; 32 + hash.len()];
key[0..16].copy_from_slice(&Twox128::hash(module));