User api.at for all .at queries (#3973)

This commit is contained in:
Jaco
2021-09-20 06:59:35 +02:00
committed by GitHub
parent 2fdb68d3bc
commit 870bb8d3cb
6 changed files with 37 additions and 14 deletions
+1 -5
View File
@@ -149,16 +149,12 @@ export class TypeRegistry implements Registry {
public createdAtHash?: Hash;
constructor (createdAtHash?: Hash | Uint8Array | string, compatSpecs?: TypeSpec[]) {
constructor (createdAtHash?: Hash | Uint8Array | string) {
this.#knownDefaults = { Json, Metadata, Raw, ...baseTypes };
this.#knownDefinitions = definitions as unknown as Record<string, { types: RegistryTypes }>;
this.init();
if (compatSpecs) {
this.compatSpecs = compatSpecs;
}
if (createdAtHash) {
this.createdAtHash = this.createType('Hash', createdAtHash);
}