Re-decorate all runtime endpoints (#4532)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user