Re-decorate all runtime endpoints (#4532)

This commit is contained in:
Jaco
2022-02-04 16:46:44 +02:00
committed by GitHub
parent c2549ec166
commit 0c08e8ba9e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
} as ApiDecoration<ApiType>;
}
if (!registry.decoratedMeta) {
if (fromEmpty || !registry.decoratedMeta) {
registry.decoratedMeta = expandMetadata(registry.registry, registry.metadata);
}
+1 -1
View File
@@ -286,7 +286,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
thisRegistry.specVersion = version.specVersion;
this._initRegistry(this.registry, this._runtimeChain as Text, version, metadata);
this._injectMetadata(thisRegistry, false);
this._injectMetadata(thisRegistry, true);
return true;
})