1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
metamask-extension/ui/lib/explorer-link.js

7 lines
208 B
JavaScript
Raw Normal View History

2017-06-27 23:49:41 +02:00
const prefixForNetwork = require('./etherscan-prefix-for-network')
2016-06-21 22:18:32 +02:00
module.exports = function (hash, network) {
2017-06-27 23:49:41 +02:00
const prefix = prefixForNetwork(network)
return `http://${prefix}etherscan.io/tx/${hash}`
}