Created
February 14, 2022 09:07
-
-
Save rapina/e19233f51ac1f55d52e75ed14b2d98f9 to your computer and use it in GitHub Desktop.
Revisions
-
rapina created this gist
Feb 14, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ const checkNetwork = async () => { try { if (window.ethereum.networkVersion !== '4') { alert("Please connect to Rinkeby!") } } catch(error) { console.log(error) } }