Open
Description
In the fromString
method, if the prefix is omitted, the typeid
passed with a random prefix succeeds, but it should fail I think.
For it to fail, we need to change the below condition
Current
if (prefix && p !== prefix) {
throw new PrefixMismatchError(prefix, p);
}
Suggested
if (p && p !== prefix) {
throw new PrefixMismatchError(prefix, p);
}
Metadata
Metadata
Assignees
Labels
No labels