Skip to content

Commit 6fb8a4e

Browse files
authored
Merge branch 'main' into mnn/swap-ui
2 parents ebf6eef + 210f631 commit 6fb8a4e

File tree

60 files changed

+1081
-908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1081
-908
lines changed

apps/dashboard/src/@/lib/ens.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ export async function resolveEns(
1717
ensName: await resolveName({
1818
address: ensNameOrAddress,
1919
client,
20-
}),
20+
}).catch(() => null),
2121
};
2222
}
2323

2424
if (!isValidENSName(ensNameOrAddress)) {
25-
throw new Error("Invalid ENS name");
25+
return {
26+
address: null,
27+
ensName: null,
28+
};
2629
}
2730

2831
const address = await resolveAddress({
2932
client,
3033
name: ensNameOrAddress,
31-
});
34+
}).catch(() => null);
3235

3336
if (!address) {
3437
return {

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_apis/token-price-data.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/PriceChart.tsx

Lines changed: 0 additions & 264 deletions
This file was deleted.

0 commit comments

Comments
 (0)