Skip to content

Commit

Permalink
chore: removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 18, 2024
1 parent deacb89 commit b3386e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/handlers/query-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function registerWalletWithVerification(context: Context, body: string, address:
export async function resolveAddress(ensName: string) {
// Gets the Ethereum address associated with an ENS (Ethereum Name Service) name
// Explicitly set provider to Ethereum main-net
console.log("1. resolveAddress");
const rpc = new RPCHandler({
networkId: "1",
networkName: "ethereum-mainnet",
Expand All @@ -87,13 +86,10 @@ export async function resolveAddress(ensName: string) {
tracking: "none",
proxySettings: { retryCount: 0, retryDelay: 1000, logTier: "verbose", logger: null, strictLogs: true },
});
console.log("2. resolveAddress");
const provider = await rpc.getFirstAvailableRpcProvider();
// const provider = new ethers.JsonRpcProvider(`https://eth.drpc.org`);
if (!provider) {
throw new Error("Failed to get a provider.");
}
console.log("3. resolveAddress");
return await provider.resolveName(ensName).catch((err) => {
console.trace({ err });
return null;
Expand Down

0 comments on commit b3386e0

Please sign in to comment.