Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local Ganache instance to test wallet_addEthereumChain #174

Merged
merged 4 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,14 +580,14 @@ <h4 class="card-title">
id="addEthereumChain"
disabled
>
Add xDAI Chain
Add Localhost 8546
</button>
<button
class="btn btn-primary btn-lg btn-block mb-3"
id="switchEthereumChain"
disabled
>
Switch to xDAI Chain
Switch to Localhost 8546
</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 @@ -288,11 +288,11 @@ const initialize = async () => {
method: 'wallet_addEthereumChain',
params: [
{
chainId: '0x64',
rpcUrls: ['https://dai.poa.network'],
chainName: 'xDAI Chain',
nativeCurrency: { name: 'xDAI', decimals: 18, symbol: 'xDAI' },
blockExplorerUrls: ['https://blockscout.com/poa/xdai'],
chainId: '0x53a',
rpcUrls: ['https://127.0.0.1:8546'],
chainName: 'Localhost 8546',
nativeCurrency: { name: 'TEST', decimals: 18, symbol: 'TEST' },
blockExplorerUrls: null,
},
],
});
Expand Down