Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit c410771

Browse files
committed
remove basenames frame references
1 parent be15276 commit c410771

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

apps/web/app/(basenames)/manage-names/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import ErrorsProvider from 'apps/web/contexts/Errors';
22
import type { Metadata } from 'next';
3-
import { initialFrame } from 'apps/web/pages/api/basenames/frame/frameResponses';
43
import NamesList from 'apps/web/src/components/Basenames/ManageNames/NamesList';
54

65
export const metadata: Metadata = {
@@ -16,9 +15,6 @@ export const metadata: Metadata = {
1615
site: '@base',
1716
card: 'summary_large_image',
1817
},
19-
other: {
20-
...(initialFrame as Record<string, string>),
21-
},
2218
};
2319

2420
export default async function Page() {

apps/web/app/(basenames)/names/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import RegistrationFlow from 'apps/web/src/components/Basenames/RegistrationFlow
66
import RegistrationValueProp from 'apps/web/src/components/Basenames/RegistrationValueProp';
77
import type { Metadata } from 'next';
88
import basenameCover from './basename_cover.png';
9-
import { initialFrame } from 'apps/web/pages/api/basenames/frame/frameResponses';
109

1110
export const metadata: Metadata = {
1211
metadataBase: new URL('https://base.org'),
@@ -22,9 +21,6 @@ export const metadata: Metadata = {
2221
site: '@base',
2322
card: 'summary_large_image',
2423
},
25-
other: {
26-
...(initialFrame as Record<string, string>),
27-
},
2824
};
2925

3026
type PageProps = { searchParams?: { code?: string } };

apps/web/pages/api/basenames/[name]/getBasenameRegistrationPrice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
import { weiToEth } from 'apps/web/src/utils/weiToEth';
99
import { formatWei } from 'apps/web/src/utils/formatWei';
1010
import { logger } from 'apps/web/src/utils/logger';
11-
import { CHAIN } from 'apps/web/pages/api/basenames/frame/constants';
11+
import { base } from 'viem/chains';
1212

1313
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
1414
const { name, years } = req.query;
@@ -30,7 +30,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
3030

3131
async function getBasenameRegistrationPrice(name: string, years: number): Promise<bigint | null> {
3232
const client = createPublicClient({
33-
chain: CHAIN,
33+
chain: base,
3434
transport: http(),
3535
});
3636
try {
@@ -40,7 +40,7 @@ async function getBasenameRegistrationPrice(name: string, years: number): Promis
4040
}
4141

4242
const price = await client.readContract({
43-
address: REGISTER_CONTRACT_ADDRESSES[CHAIN.id],
43+
address: REGISTER_CONTRACT_ADDRESSES[base.id],
4444
abi: REGISTER_CONTRACT_ABI,
4545
functionName: 'registerPrice',
4646
args: [normalizedName, secondsInYears(years)],

apps/web/pages/api/basenames/[name]/isNameAvailable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NextApiRequest, NextApiResponse } from 'apps/web/node_modules/next/dist/shared/lib/utils';
22
import { getBasenameAvailable } from 'apps/web/src/utils/usernames';
3-
import { CHAIN } from 'apps/web/pages/api/basenames/frame/constants';
3+
import { base } from 'viem/chains';
44

55
export type IsNameAvailableResponse = {
66
nameIsAvailable: boolean;
@@ -9,7 +9,7 @@ export type IsNameAvailableResponse = {
99
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
1010
const { name } = req.query;
1111
try {
12-
const isNameAvailableResponse = await getBasenameAvailable(String(name), CHAIN);
12+
const isNameAvailableResponse = await getBasenameAvailable(String(name), base);
1313
const responseData: IsNameAvailableResponse = {
1414
nameIsAvailable: isNameAvailableResponse,
1515
};

0 commit comments

Comments
 (0)