Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public enableAccountAccess = async (e: any) => {
const web3 = arc.web3
try {
await (web3 as any).currentProvider.enable()
} catch (e) {
throw e
}
}