Add script to retrieve local meta/rpc/version (#5471)

* Add script to retrieve local meta/rpc/version

* Filter _unknown_

* Cleanup

* Additional
This commit is contained in:
Jaco
2023-02-04 00:22:36 +02:00
committed by GitHub
parent 39d76c969d
commit 5ed3ea51d3
15 changed files with 690 additions and 6 deletions
+4 -2
View File
@@ -363,8 +363,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
}
}
const filterKey = (k: string) => !allKeys.includes(k);
const unknown = exposed.filter(filterKey);
const unknown = exposed.filter((k: string) =>
!allKeys.includes(k) &&
!k.includes('_unstable_')
);
if (unknown.length && !this._options.noInitWarn) {
l.warn(`RPC methods not decorated: ${unknown.join(', ')}`);