Jump to org in resolver

This commit is contained in:
Alexis Sellier
2021-06-03 12:07:31 +02:00
parent 86df6db88e
commit 8e598eeef3
2 changed files with 14 additions and 2 deletions
+5
View File
@@ -138,3 +138,8 @@ export async function identifyAddress(address: string, config: Config): Promise<
}
return AddressType.EOA;
}
// Resolve a label under the radicle domain.
export async function resolveLabel(label: string, config: Config): Promise<string | null> {
return config.provider.resolveName(`${label}.${config.registrar.domain}`);
}