hello gyus
how add chain verification on website when user connect metamask to my website or when he run functions on it ?

Currently my contracts is in polygon network but if user is in etherium and running my function in website they are calling in etherium network without error

Jul 28, 2022, 4:43 PM
you could probably check the chain id, metamask docs explain how
Jul 28, 2022, 5:59 PM
check window.ethereum.networkVersion.chainId
Jul 28, 2022, 6:03 PM
rose is a better dev than some of us in here
Jul 28, 2022, 6:23 PM
admins are smart to use it
Jul 28, 2022, 6:24 PM
Rose is a program 😁😁
Jul 28, 2022, 6:26 PM

© 2024 Draquery.com All rights reserved.