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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user