Skip to content

Commit ad3d5ee

Browse files
Use local Ganache instance to test wallet_addEthereumChain (#174)
* Update xDAI information to Gnosis * Use local Ganache instance instead of Gnosis chain * Update buttons * Correct blockExplorerUrl
1 parent 5719808 commit ad3d5ee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,14 +580,14 @@ <h4 class="card-title">
580580
id="addEthereumChain"
581581
disabled
582582
>
583-
Add xDAI Chain
583+
Add Localhost 8546
584584
</button>
585585
<button
586586
class="btn btn-primary btn-lg btn-block mb-3"
587587
id="switchEthereumChain"
588588
disabled
589589
>
590-
Switch to xDAI Chain
590+
Switch to Localhost 8546
591591
</button>
592592
</div>
593593
</div>

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ const initialize = async () => {
288288
method: 'wallet_addEthereumChain',
289289
params: [
290290
{
291-
chainId: '0x64',
292-
rpcUrls: ['https://dai.poa.network'],
293-
chainName: 'xDAI Chain',
294-
nativeCurrency: { name: 'xDAI', decimals: 18, symbol: 'xDAI' },
295-
blockExplorerUrls: ['https://blockscout.com/poa/xdai'],
291+
chainId: '0x53a',
292+
rpcUrls: ['https://127.0.0.1:8546'],
293+
chainName: 'Localhost 8546',
294+
nativeCurrency: { name: 'TEST', decimals: 18, symbol: 'TEST' },
295+
blockExplorerUrls: null,
296296
},
297297
],
298298
});

0 commit comments

Comments
 (0)