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

Auto switch l2 network #277

Merged
merged 1 commit into from
Oct 30, 2024
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
15 changes: 0 additions & 15 deletions cmd/monogen/testapp/wallet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,20 +149,5 @@ <h2>L1 to L2 ETH Deposits</h2>
</div>
<p id="status"></p>
</div>
<div class="container">
<h1>Monomer L2 Wallet Integration</h1>
<div class="section">
<h2>Keplr Integration</h2>
<p>
Before adding the Monomer L2 to your Keplr wallet, please
remove the chain from your wallet if it was previously
added. After adding the Monomer L2 chain config to Keplr,
you can make the chain visible in your wallet by navigating
to the "General" settings and adding the chain through the
"Add/Remove Non-Native Chains" page.
</p>
<button id="enable-keplr">Add L2 Chain to Keplr</button>
</div>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions cmd/monogen/testapp/wallet/metamask-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function connectMetamask() {

await addL1ChainToMetaMask();
await switchToMonomerDevnet();
await runKeplrIntegration();
joshklop marked this conversation as resolved.
Show resolved Hide resolved

console.log("Connected to MetaMask and contract instantiated.");
} catch (error) {
Expand Down
Loading