How to use the @aragon/wrapper.ensResolve function in @aragon/wrapper

To help you get started, we’ve selected a few @aragon/wrapper 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 floating / frame / main / accounts / aragon / index.js View on Github external
return new Promise(async (resolve, reject) => {
    try {
      let address = await ensResolve(domain, { provider: require('../../provider'), registryAddress })
      if (address.replace('0x', '')) return resolve(address)
      throw new Error('Invalid address')
    } catch (e) {
      reject(new Error(`Unable to resolve DAO ${domain} on current network`))
    }
  })
}

@aragon/wrapper

Library for Aragon client implementations

AGPL-3.0
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis