Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mapDispatchToProps = dispatch => ({
- setWeb3: (web3) => {
- dispatch({
- type: 'WEB3',
- value: web3
- })
- },
- });
- setInterval(() => {
- web3js.eth.getAccounts((error, accounts) => {
- if (accounts.length > 0) {
- this.props.setWeb3(web3js);
- }
- });
- }, 2500);
Add Comment
Please, Sign In to add comment