From 9c0bdd76747aae9063aa8e9f974b1f35334404c8 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 14 Jun 2022 11:43:10 +0200 Subject: [PATCH 1/4] Update xDAI information to Gnosis --- src/index.html | 4 ++-- src/index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.html b/src/index.html index d849d3b4..46c01a5c 100644 --- a/src/index.html +++ b/src/index.html @@ -580,14 +580,14 @@

id="addEthereumChain" disabled > - Add xDAI Chain + Add Gnosis Chain diff --git a/src/index.js b/src/index.js index 9430962d..df27427c 100644 --- a/src/index.js +++ b/src/index.js @@ -289,10 +289,10 @@ const initialize = async () => { params: [ { chainId: '0x64', - rpcUrls: ['https://dai.poa.network'], - chainName: 'xDAI Chain', + rpcUrls: ['https://rpc.gnosischain.com'], + chainName: 'Gnosis Chain', nativeCurrency: { name: 'xDAI', decimals: 18, symbol: 'xDAI' }, - blockExplorerUrls: ['https://blockscout.com/poa/xdai'], + blockExplorerUrls: ['https://blockscout.com/xdai/mainnet'], }, ], }); From 627d03ecea319c799456dc53ba963ded91cd6c01 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 14 Jun 2022 14:55:26 +0200 Subject: [PATCH 2/4] Use local Ganache instance instead of Gnosis chain --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index df27427c..92ec4d33 100644 --- a/src/index.js +++ b/src/index.js @@ -288,11 +288,11 @@ const initialize = async () => { method: 'wallet_addEthereumChain', params: [ { - chainId: '0x64', - rpcUrls: ['https://rpc.gnosischain.com'], - chainName: 'Gnosis Chain', - nativeCurrency: { name: 'xDAI', decimals: 18, symbol: 'xDAI' }, - blockExplorerUrls: ['https://blockscout.com/xdai/mainnet'], + chainId: '0x53a', + rpcUrls: ['https://127.0.0.1:8546'], + chainName: 'Localhost 8546', + nativeCurrency: { name: 'TEST', decimals: 18, symbol: 'TEST' }, + blockExplorerUrls: [], }, ], }); From 3104b2e6a26121c5b7ab4b0e8ba12b2be9fd6adf Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 14 Jun 2022 15:00:53 +0200 Subject: [PATCH 3/4] Update buttons --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 46c01a5c..2cf89d51 100644 --- a/src/index.html +++ b/src/index.html @@ -580,14 +580,14 @@

id="addEthereumChain" disabled > - Add Gnosis Chain + Add Localhost 8546 From a67e4f38928e2f3aca5f139a12a920b9d74502a9 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 14 Jun 2022 15:29:39 +0200 Subject: [PATCH 4/4] Correct blockExplorerUrl --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 92ec4d33..45935e3c 100644 --- a/src/index.js +++ b/src/index.js @@ -292,7 +292,7 @@ const initialize = async () => { rpcUrls: ['https://127.0.0.1:8546'], chainName: 'Localhost 8546', nativeCurrency: { name: 'TEST', decimals: 18, symbol: 'TEST' }, - blockExplorerUrls: [], + blockExplorerUrls: null, }, ], });