User-provided types for chain & spec (#1361)

* User-provided types for chain & spec

* Remove unused node name

* Remove re-registration warning
This commit is contained in:
Jaco Greeff
2019-09-03 11:39:22 +02:00
committed by GitHub
parent 7809ea5dad
commit 7b844274fd
3 changed files with 28 additions and 12 deletions
+1 -2
View File
@@ -47,9 +47,8 @@ export class TypeRegistry {
? type
: JSON.stringify(type);
// we alreday have this type, remove the classes registered for it
if (this._classes.has(name)) {
console.warn(`The type '${name}' is already existing as a class, re-registering definition`);
this._classes.delete(name);
}