From 3b8635ce7bfbdecca321fd20d1073fd7549266d3 Mon Sep 17 00:00:00 2001 From: Gerardo Nardelli Date: Wed, 26 Dec 2018 14:07:36 -0300 Subject: [PATCH] Fix POA Sokol and POA Core explorer urls --- src/stores/utils/web3.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/utils/web3.js b/src/stores/utils/web3.js index ed030e45..99e7cd57 100644 --- a/src/stores/utils/web3.js +++ b/src/stores/utils/web3.js @@ -50,13 +50,13 @@ const explorers = { 3: 'https://ropsten.etherscan.io/', 4: 'https://rinkeby.etherscan.io/', 42:'https://kovan.etherscan.io/', - 77:'https://sokol-explorer.poa.network/', - 99:'https://poaexplorer.com/' + 77:'https://blockscout.com/poa/sokol/', + 99:'https://blockscout.com/poa/core/' } export const getExplorerUrl = (id) => explorers[id] -export const getAddressUrl = (id) => getExplorerUrl(id) + (id.toString() === '77' ? 'account/' : 'address/') +export const getAddressUrl = (id) => getExplorerUrl(id) + 'address/' export const getNetworkName = (id) => networks[id] || 'Unknown'