Skip to content

Commit

Permalink
Use default local ganache network info
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Aug 16, 2023
1 parent 0497ebc commit 83915ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -944,14 +944,14 @@ <h4 class="card-title">
id="addEthereumChain"
disabled
>
Add Localhost 8546
Add Localhost 8545
</button>
<button
class="btn btn-primary btn-lg btn-block mb-3"
id="switchEthereumChain"
disabled
>
Switch to Localhost 8546
Switch to Localhost 8545
</button>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,10 @@ const initialize = async () => {
method: 'wallet_addEthereumChain',
params: [
{
chainId: '0x53a',
rpcUrls: ['http://127.0.0.1:8546'],
chainName: 'Localhost 8546',
nativeCurrency: { name: 'TEST', decimals: 18, symbol: 'TEST' },
chainId: '0x539',
rpcUrls: ['http://127.0.0.1:8545'],
chainName: 'Localhost 8545',
nativeCurrency: { name: 'Ether', decimals: 18, symbol: 'ETH' },
blockExplorerUrls: null,
},
],
Expand All @@ -503,7 +503,7 @@ const initialize = async () => {
method: 'wallet_switchEthereumChain',
params: [
{
chainId: '0x53a',
chainId: '0x539',
},
],
});
Expand Down

0 comments on commit 83915ae

Please sign in to comment.