Skip to content

Commit

Permalink
fix lint: ton-api-example
Browse files Browse the repository at this point in the history
  • Loading branch information
heyOnuoha committed Oct 16, 2024
1 parent ba38509 commit db02aba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 0 additions & 14 deletions examples/swaps-api-nextjs-ton/src/components/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Uint8Array>) {
throw new Error("Function not implemented.");
}

0 comments on commit db02aba

Please sign in to comment.