How to use the arc.enableWeb3ProviderAndWarn function in arc

To help you get started, we’ve selected a few arc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github daostack / alchemy / src / components / Redemptions / RedemptionsMenu.tsx View on Github external
private async redeemAll() {
    const {
      currentAccountAddress,
      data: redeemableProposals,
      redeemProposal,
      showNotification,
    } = this.props;

    if (!(await enableWeb3ProviderAndWarn(showNotification.bind(this)))) { return; }

    redeemableProposals.forEach(proposal => {
      redeemProposal(proposal.dao.id, proposal.id, currentAccountAddress);
    });
  }
}