Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getScannerWithProvider = (provider: FallbackProvider) => {
return new EthScan(new EthersProvider(provider));
};
const getScanner = (node: NodeConfig) => {
return new EthScan(new HttpProvider(node.url));
};
componentDidMount(){
const network = process.env.REACT_APP_NETWORK || 'ropsten'
this.scanner = new EthScan(new HttpProvider(Infura[network]))
this.setCurrencies(network)
this.setGraphClient(network)
this.grabAddress()
}