Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
network id type
Browse files Browse the repository at this point in the history
  • Loading branch information
akerbabber committed Oct 3, 2023
1 parent 0b94f83 commit da34ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2>Deposit to Contract</h2>
const networkId = await window.ethereum.networkVersion;

// Ensure user is on the Polygon (Matic) network
if (networkId !== 137) {
if (networkId !== '137') {
alert("Please switch to the Polygon (Matic) network in MetaMask.");
return;
}
Expand Down

0 comments on commit da34ec8

Please sign in to comment.