From 13cbd838591fdcf356830700c1a1a90b43610fa9 Mon Sep 17 00:00:00 2001 From: Victoria <4222953+lvpeschke@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:35:45 +0200 Subject: [PATCH 1/4] Update chains.ts Add Dango Blockscout link to generate a valid tx link on faucet success for dango --- apps/web/config/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/config/chains.ts b/apps/web/config/chains.ts index ed0d8296f..11de581fe 100644 --- a/apps/web/config/chains.ts +++ b/apps/web/config/chains.ts @@ -27,7 +27,7 @@ export const CHAIN_PARAMS: Record = { chainName: 'Dango Testnet', nativeCurrency: { name: 'Dango Celo', symbol: 'D-CELO', decimals: 18 }, rpcUrls: ['https://forno.dango.celo-testnet.org'], - blockExplorerUrls: [], + blockExplorerUrls: ['https://celo-dango.blockscout.com/'], iconUrls: ['future'], }, } From b670836e997397a6cb76ecde7354cfefcbb8955f Mon Sep 17 00:00:00 2001 From: Victoria <4222953+lvpeschke@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:41:39 +0200 Subject: [PATCH 2/4] Update chains.ts Remove slash from end of URL --- apps/web/config/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/config/chains.ts b/apps/web/config/chains.ts index 11de581fe..bb672eddf 100644 --- a/apps/web/config/chains.ts +++ b/apps/web/config/chains.ts @@ -27,7 +27,7 @@ export const CHAIN_PARAMS: Record = { chainName: 'Dango Testnet', nativeCurrency: { name: 'Dango Celo', symbol: 'D-CELO', decimals: 18 }, rpcUrls: ['https://forno.dango.celo-testnet.org'], - blockExplorerUrls: ['https://celo-dango.blockscout.com/'], + blockExplorerUrls: ['https://celo-dango.blockscout.com'], iconUrls: ['future'], }, } From c3ef591df1d5e2071968ad0cb1ea1dbaf15cc82d Mon Sep 17 00:00:00 2001 From: pahor167 Date: Sun, 7 Jul 2024 10:52:27 +0200 Subject: [PATCH 3/4] explorer fix --- apps/web/components/faucet-status.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/faucet-status.tsx b/apps/web/components/faucet-status.tsx index 3346b9cef..b4e76eec1 100644 --- a/apps/web/components/faucet-status.tsx +++ b/apps/web/components/faucet-status.tsx @@ -1,5 +1,5 @@ -import { FC, useCallback, useEffect, useState } from 'react' import { inter } from 'components/request-form' +import { FC, useCallback, useEffect, useState } from 'react' import styles from 'styles/Form.module.css' import { Network, RequestRecord, RequestStatus } from 'types' import { subscribeRequest } from 'utils/firebase-client' @@ -95,7 +95,7 @@ const TxMessage = ({ className={inter.className} target="_blank" rel="noreferrer" - href={`https://explorer.celo.org/${network}/tx/${txHash}`} + href={network == 'dango' ? `https://celo-dango.blockscout.com/tx/${txHash}` : `https://explorer.celo.org/${network}/tx/${txHash}`} > View on Celo Explorer From 75c00e3a1cf69c723615bef6fd658b9de279b8e2 Mon Sep 17 00:00:00 2001 From: pahor167 Date: Sun, 7 Jul 2024 10:56:38 +0200 Subject: [PATCH 4/4] lint --- apps/web/components/faucet-status.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/components/faucet-status.tsx b/apps/web/components/faucet-status.tsx index b4e76eec1..fa4ffc235 100644 --- a/apps/web/components/faucet-status.tsx +++ b/apps/web/components/faucet-status.tsx @@ -1,5 +1,5 @@ -import { inter } from 'components/request-form' import { FC, useCallback, useEffect, useState } from 'react' +import { inter } from 'components/request-form' import styles from 'styles/Form.module.css' import { Network, RequestRecord, RequestStatus } from 'types' import { subscribeRequest } from 'utils/firebase-client' @@ -95,7 +95,11 @@ const TxMessage = ({ className={inter.className} target="_blank" rel="noreferrer" - href={network == 'dango' ? `https://celo-dango.blockscout.com/tx/${txHash}` : `https://explorer.celo.org/${network}/tx/${txHash}`} + href={ + network === 'dango' + ? `https://celo-dango.blockscout.com/tx/${txHash}` + : `https://explorer.celo.org/${network}/tx/${txHash}` + } > View on Celo Explorer