diff --git a/examples/swaps-api-nextjs-ton/src/app/api/ton-connect/route.ts b/examples/swaps-api-nextjs-ton/src/app/api/ton-connect/route.ts index 5ea7da2..4e62332 100644 --- a/examples/swaps-api-nextjs-ton/src/app/api/ton-connect/route.ts +++ b/examples/swaps-api-nextjs-ton/src/app/api/ton-connect/route.ts @@ -2,9 +2,9 @@ import { NextResponse } from "next/server"; export async function GET() { const manifest = { - url: process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000", - name: process.env.NEXT_PUBLIC_APP_NAME || "My TON App", - iconUrl: `${process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"}/app-icon.png`, + url: "http://localhost:3000", + name: "Ton Bridge", + iconUrl: `"http://localhost:3000/app-icon.png`, }; return NextResponse.json(manifest); diff --git a/examples/swaps-api-nextjs-ton/src/components/Swap.tsx b/examples/swaps-api-nextjs-ton/src/components/Swap.tsx index 2a9c372..5bc37ef 100644 --- a/examples/swaps-api-nextjs-ton/src/components/Swap.tsx +++ b/examples/swaps-api-nextjs-ton/src/components/Swap.tsx @@ -898,18 +898,4 @@ function formatUSD(amount: string) { }).format(Number(amount)); } -function formatTonTxHash(txHashBase64: string) { - const decodedBytes = atob(txHashBase64); - - let hexString = ""; - for (let i = 0; i < decodedBytes.length; i++) { - hexString += decodedBytes.charCodeAt(i).toString(16).padStart(2, "0"); - } - - return hexString; -} - export default Swap; -function sha256(arg0: Promise) { - throw new Error("Function not implemented."); -}