diff --git a/apps/remix-ide/src/app/providers/injected-custom-provider.tsx b/apps/remix-ide/src/app/providers/injected-custom-provider.tsx index 5b551ee542..de00283e8f 100644 --- a/apps/remix-ide/src/app/providers/injected-custom-provider.tsx +++ b/apps/remix-ide/src/app/providers/injected-custom-provider.tsx @@ -18,7 +18,7 @@ export class InjectedCustomProvider extends InjectedProviderDefault { } async init() { - if (!this.chainId) { + if (!this.chainId && this.rpcUrls.length > 0) { const chainId = await new Web3(this.rpcUrls[0]).eth.getChainId() this.chainId = `0x${chainId.toString(16)}` } diff --git a/apps/remix-ide/src/app/udapp/run-tab.js b/apps/remix-ide/src/app/udapp/run-tab.js index a77854ae33..7669e59221 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.js +++ b/apps/remix-ide/src/app/udapp/run-tab.js @@ -166,18 +166,24 @@ export class RunTab extends ViewPlugin { if (event.detail.info.name === 'MetaMask') { await addCustomInjectedProvider(5, event, 'L2 - Optimism', '0xa', ['https://mainnet.optimism.io']) - await addCustomInjectedProvider(6, event, 'L2 - Arbitrum One', '0xa4b1', ['https://arb1.arbitrum.io/rpc']) - await addCustomInjectedProvider(32, event, 'SKALE Chaos Testnet', '0x50877ed6', ['https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix'], { - "name": "sFUEL", - "symbol": "sFUEL", + await addCustomInjectedProvider(6, event, 'L2 - Arbitrum One', '0xa4b1', ['https://arb1.arbitrum.io/rpc']) + await addCustomInjectedProvider(7, event, 'Sepolia Testnet', '0xaa36a7', [], + { + "name": "Sepolia ETH", + "symbol": "ETH", "decimals": 18 - }) - await addCustomInjectedProvider(33, event, 'Ephemery Testnet', '', ['https://otter.bordel.wtf/erigon', 'https://eth.ephemeral.zeus.fyi'], + }) + await addCustomInjectedProvider(8, event, 'Ephemery Testnet', '', ['https://otter.bordel.wtf/erigon', 'https://eth.ephemeral.zeus.fyi'], { "name": "Ephemery ETH", "symbol": "ETH", "decimals": 18 }) + await addCustomInjectedProvider(9, event, 'SKALE Chaos Testnet', '0x50877ed6', ['https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix'], { + "name": "sFUEL", + "symbol": "sFUEL", + "decimals": 18 + }) } }