From 10fd7a32e2cb2590ed05dca919052b8c8ef3ce44 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 19 Dec 2019 19:15:24 +0530 Subject: [PATCH] network id fixed --- remix-lib/src/execution/execution-context.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/remix-lib/src/execution/execution-context.js b/remix-lib/src/execution/execution-context.js index 8f19810642..9394536960 100644 --- a/remix-lib/src/execution/execution-context.js +++ b/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') {