_checkNetwork() {
        if (Number(window.ethereum.networkVersion) === chainId) {
            return true;
        }

        return false;
    }
// This method checks if Metamask selected network is Localhost:8545
This method checks if Metamask selected network is Localhost:8545
This method checks if Metamask selected network is Localhost : 8545
_checkNetwork() {
        if (Number(window.ethereum.networkVersion) === chainId) {
            return true;
        }
        return false;
    }
_checkNetwork ( ) { if ( Number ( window . ethereum . networkVersion ) === chainId ) { return true ; } return false ; }
This method checks if Metamask selected network is Localhost:8545
This method checks if Metamask selected network is Localhost : 8545