From 75c4c30d3f7b76a0217a85237252072a892e43fa Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Mon, 25 Oct 2021 10:04:14 -0400 Subject: [PATCH] Remove dead counter code and add back blocscout url --- src/config/config.ts | 2 ++ src/pages/api/counter.ts | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 src/pages/api/counter.ts diff --git a/src/config/config.ts b/src/config/config.ts index 4ca32cb..96fc88b 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -11,6 +11,7 @@ interface Config { debug: boolean version: string | null url: string + blockscoutUrl?: string discordUrl: string chainId: number contractAddresses: Record @@ -24,6 +25,7 @@ const configMainnet: Config = { debug: isDevMode, version, url: 'https://mento.finance', + blockscoutUrl: 'https://explorer.celo.org', discordUrl: 'https://discord.gg/E9AqUQnWQE', chainId: 42220, contractAddresses: { diff --git a/src/pages/api/counter.ts b/src/pages/api/counter.ts deleted file mode 100644 index 1aa9b50..0000000 --- a/src/pages/api/counter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { NextApiHandler } from 'next' - -const countHandler: NextApiHandler = async (request, response) => { - const { amount = 1 } = request.body - - // simulate IO latency - await new Promise((resolve) => setTimeout(resolve, 500)) - - response.json({ data: amount }) -} - -export default countHandler