1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 05:12:18 +01:00
metamask-extension/ui/responsive/lib/explorer-link.js

7 lines
208 B
JavaScript
Raw Normal View History

2017-07-04 01:09:17 +02:00
const prefixForNetwork = require('./etherscan-prefix-for-network')
module.exports = function (hash, network) {
const prefix = prefixForNetwork(network)
return `http://${prefix}etherscan.io/tx/${hash}`
}