import { InvalidBeacon , getImplementationAddressFromBeacon } from './impl-address' ; import { EthereumProvider } from './provider' ; returns export async function isBeacon ( provider , beaconAddress ) { try { await getImplementationAddressFromBeacon ( provider , beaconAddress ) ; return true ; } catch ( e ) { if ( e instanceof InvalidBeacon ) { return false ; } else { throw e ; } } }