From 1d7949ff217555027fb69a3d82227b9d4bf83b4f Mon Sep 17 00:00:00 2001 From: "ilge.ustun" Date: Fri, 8 Mar 2024 13:10:36 +0100 Subject: [PATCH] blockscanner url --- app/src/components/FaucetForm/Faucet.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/src/components/FaucetForm/Faucet.tsx b/app/src/components/FaucetForm/Faucet.tsx index c09f175..4908ac0 100644 --- a/app/src/components/FaucetForm/Faucet.tsx +++ b/app/src/components/FaucetForm/Faucet.tsx @@ -12,6 +12,11 @@ interface FaucetProps { setLoading: Dispatch> } +const blockscanner:{ [key: string]: string }= { + 100: "https://gnosisscan.io/tx/", + 10200: "https://gnosis-chiado.blockscout.com/tx/" +} + function Faucet({ enabledTokens, chainId, setLoading }: FaucetProps): JSX.Element { const [walletAddress, setWalletAddress] = useState("") const [token, setToken] = useState(null) @@ -151,14 +156,11 @@ function Faucet({ enabledTokens, chainId, setLoading }: FaucetProps): JSX.Elemen
Token sent to your wallet address. Hash:
- {chainId === 100 - ? {txHash} - : txHash - } + {txHash}
}