|
|
@ -5,10 +5,10 @@ const transactionDetailsLinks = { |
|
|
|
Kovan: 'https://kovan.etherscan.io/tx/', |
|
|
|
Kovan: 'https://kovan.etherscan.io/tx/', |
|
|
|
Goerli: 'https://goerli.etherscan.io/tx/', |
|
|
|
Goerli: 'https://goerli.etherscan.io/tx/', |
|
|
|
Sepolia: 'https://sepolia.etherscan.io/tx/' |
|
|
|
Sepolia: 'https://sepolia.etherscan.io/tx/' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function etherScanLink (network: string, hash: string): string { |
|
|
|
export function etherScanLink (network: string, hash: string): string { |
|
|
|
if (transactionDetailsLinks[network]) { |
|
|
|
if (transactionDetailsLinks[network]) { |
|
|
|
return transactionDetailsLinks[network] + hash |
|
|
|
return transactionDetailsLinks[network] + hash |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |