Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: getOwner to getAddress #384

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: remove console.log
heronlancellot committed Jun 5, 2024
commit 4866ec9cd5b7c6023025c1d87d2d8d439bce5e58
3 changes: 0 additions & 3 deletions components/01-atoms/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ export const SearchBar = () => {
process.env.NEXT_PUBLIC_ALCHEMY_ETHEREUM_HTTP,
);
const ens = new ENS(undefined, provider);
console.log("SearchBar -> ens", ens);

const {
lastWalletConnected,
@@ -76,9 +75,7 @@ export const SearchBar = () => {
const formattedAddress = normalizeENSName(inputAddress);

try {
console.log("getUserAddress -> formattedAddress", formattedAddress);
const address: unknown = await ens.getAddress(formattedAddress);
console.log("getUserAddress -> address", address);
if (typeof address !== "string") {
toast.error(
"Wrong type of address returned by provider. Please contact the team",