diff --git a/lib/helper.rb b/lib/helper.rb index 6ca9094..304f32a 100644 --- a/lib/helper.rb +++ b/lib/helper.rb @@ -58,7 +58,11 @@ def generate_storage_key(module_name, storage_name, params = nil, hasher = nil, param_key = param.hex_to_bytes param_hasher = "Twox128" if param_hasher.nil? - storage_key += Crypto.send param_hasher.underscore, param_key + if param_hasher.to_s.underscore == "identity" + storage_key += param + else + storage_key += Crypto.send param_hasher.underscore, param_key + end end "0x#{storage_key}"