mirror of
https://github.com/stjet/bns.git
synced 2025-12-29 11:19:25 +00:00
fix for kalium rpc (banani), lowercase domain names
This commit is contained in:
@@ -195,6 +195,7 @@ export class Resolver {
|
||||
}
|
||||
|
||||
async resolve(domain_name: string, tld: string): Promise<Domain | undefined> {
|
||||
domain_name = domain_name.toLowerCase();
|
||||
if (!this.tld_mapping[tld]) throw new Error("No TLD Account found for that TLD");
|
||||
const tld_account = new TLDAccount(this.rpc, this.tld_mapping[tld]);
|
||||
let domain = await tld_account.get_specific(domain_name);
|
||||
|
||||
Reference in New Issue
Block a user