"use client";
class n {
  client;
  registry;
  constructor(e, t) {
    this.client = e, this.registry = t;
  }
  async resolveName(e) {
    try {
      const { contract: t, getQueryMsg: r } = this.registry;
      return await this.client.queryContractSmart(t, r(e));
    } catch (t) {
      console?.error(t);
      return;
    }
  }
}
export {
  n as NameService
};
