network id fixed

pull/7/head
aniket-engg 5 years ago committed by Aniket
parent 6235ede6d4
commit 10fd7a32e2
  1. 12
      remix-lib/src/execution/execution-context.js

@ -151,12 +151,12 @@ function ExecutionContext () {
var name = null
if (err) name = 'Unknown'
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
else if (id === '1') name = 'Main'
else if (id === '2') name = 'Morden (deprecated)'
else if (id === '3') name = 'Ropsten'
else if (id === '4') name = 'Rinkeby'
else if (id === '5') name = 'Goerli'
else if (id === '42') name = 'Kovan'
else if (id === 1) name = 'Main'
else if (id === 2) name = 'Morden (deprecated)'
else if (id === 3) name = 'Ropsten'
else if (id === 4) name = 'Rinkeby'
else if (id === 5) name = 'Goerli'
else if (id === 42) name = 'Kovan'
else name = 'Custom'
if (id === '1') {

Loading…
Cancel
Save