diff options
Diffstat (limited to 'responsive-ui/lib/explorer-link.js')
-rw-r--r-- | responsive-ui/lib/explorer-link.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/responsive-ui/lib/explorer-link.js b/responsive-ui/lib/explorer-link.js new file mode 100644 index 000000000..3b82ecd5f --- /dev/null +++ b/responsive-ui/lib/explorer-link.js @@ -0,0 +1,6 @@ +const prefixForNetwork = require('./etherscan-prefix-for-network') + +module.exports = function (hash, network) { + const prefix = prefixForNetwork(network) + return `http://${prefix}etherscan.io/tx/${hash}` +} |