Support new Metamask/Web3 privacy mode #97
Reference in New Issue
Block a user
Delete Branch "feature/87-metamask_privacy_mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #87
@@ -58,0 +50,4 @@console.debug('[kredits] Using user-provided instance, e.g. from Mist browser or Metamask');ethProvider = new ethers.providers.Web3Provider(web3.currentProvider);ethProvider.listAccounts().then(accounts => {context.set('currentUserAccounts', accounts);do those functions need to be in that RSVP.Promise ?
or could those be general functions that return a Promise that resolves the ethProvider?
something like:
@@ -58,0 +50,4 @@console.debug('[kredits] Using user-provided instance, e.g. from Mist browser or Metamask');ethProvider = new ethers.providers.Web3Provider(web3.currentProvider);ethProvider.listAccounts().then(accounts => {context.set('currentUserAccounts', accounts);It's easier this way. Anyone wanting to refactor it more can do so in the future. PRs welcome.