Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let currentAccount;
- web3.eth.getAccounts((err, accounts) => {
- if (err) reject(err);
- else if (!accounts.length) reject('No Metamask accounts found');
- else {
- currentAccount = accounts[0];
- ... do whetever with it ....
- }
- });
Add Comment
Please, Sign In to add comment