Align CHANGELOG (#4650)

* Align CHANGELOG

* Typos
This commit is contained in:
Jaco
2022-03-11 13:54:11 +02:00
committed by GitHub
parent d646fa03af
commit 67679f34e9
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
Changes:
- Fix conversion of metadata prior to <= V11 to V14
- Fix conversion of metadata prior to V12 to latest
- Allow for correct handling of `Option<Null>` types
- Adjust for bundlers where `import.meta.url` is undefined
+1 -5
View File
@@ -11,13 +11,9 @@ export function toV12 (registry: Registry, { extrinsic, modules }: MetadataV11):
return registry.createTypeUnsafe('MetadataV12', [{
extrinsic,
modules: modules.map((mod): ModuleMetadataV12 =>
// ensure that we unwrap all options (conversion is problematic otherwise)
registry.createTypeUnsafe('ModuleMetadataV12', [{
...mod,
calls: mod.calls.unwrapOr(null),
events: mod.events.unwrapOr(null),
index: 255,
storage: mod.storage.unwrapOr(null)
index: 255
}])
)
}]);