aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/explorer-link.js
blob: 3b82ecd5fb6198a37b4363deeb6cd273b39f8ece (plain) (blame)
1
2
3
4
5
6
const prefixForNetwork = require('./etherscan-prefix-for-network')

module.exports = function (hash, network) {
  const prefix = prefixForNetwork(network)
  return `http://${prefix}etherscan.io/tx/${hash}`
}