diff --git a/front/src/app/api/users/[id]/route.ts b/front/src/app/api/users/[id]/route.ts index 79d4be5..bef3078 100644 --- a/front/src/app/api/users/[id]/route.ts +++ b/front/src/app/api/users/[id]/route.ts @@ -16,8 +16,5 @@ export async function GET(_req: Request, { params }: { params: { id: Hex } }) { }); const balance = await PUBLIC_CLIENT.getBalance({ address: user.account }); - - console.log("balance", balance); - return Response.json(JSON.parse(stringify({ ...user, id: toHex(user.id), balance }))); } diff --git a/front/src/app/api/users/save/route.ts b/front/src/app/api/users/save/route.ts index 38a8a1e..3b005a3 100644 --- a/front/src/app/api/users/save/route.ts +++ b/front/src/app/api/users/save/route.ts @@ -38,17 +38,6 @@ export async function POST(req: Request) { args: [pubKey], }); - // await PUBLIC_CLIENT.waitForTransactionReceipt({ hash }); - - // const createdUser = await PUBLIC_CLIENT.readContract({ - // address: process.env.NEXT_PUBLIC_FACTORY_CONTRACT_ADDRESS as Hex, - // abi: FACTORY_ABI, - // functionName: "getUser", - // args: [BigInt(id)], - // }); - - // send 1 wei to the user - // so that anyone can send a transaction to the user's smart wallet await walletClient.sendTransaction({ to: smartWalletAddress, value: BigInt(1), diff --git a/front/src/app/favicon.ico b/front/src/app/favicon.ico new file mode 100644 index 0000000..3fae87a Binary files /dev/null and b/front/src/app/favicon.ico differ diff --git a/front/src/app/layout.tsx b/front/src/app/layout.tsx index a020490..7308645 100644 --- a/front/src/app/layout.tsx +++ b/front/src/app/layout.tsx @@ -11,8 +11,9 @@ import { Metadata } from "next"; import { ModalOnWCEvent } from "@/libs/wallet-connect/ModalOnWCEvent"; export const metadata: Metadata = { - title: "Smart Wallet", - description: "Passkeys X ERC-4337", + title: "Smart Wallet - ERC-4337 x Passkeys", + description: + "Simple implementation of an ERC-4337 contract wallet controlled by Passkeys to enhance user experience and self-custodian private keys security.", viewport: { width: "device-width", height: "device-height", diff --git a/front/src/components/SettingsPage/index.tsx b/front/src/components/SettingsPage/index.tsx index d02fa26..41fa97f 100644 --- a/front/src/components/SettingsPage/index.tsx +++ b/front/src/components/SettingsPage/index.tsx @@ -36,7 +36,7 @@ export default function SettingsPage() { Settings - On Base Goerli network only: + On Sepolia testnet only: