import { ResolutionError , ResolutionErrorCode } from '@unstoppabledomains/resolution' ; export const isResolutionError = ( err ) => { return err && err . code && Object . values ( ResolutionErrorCode ) . includes ( err . code ) ; } ; export const createENSResolutionError = ( err ) => { if ( err . message . includes ( 'network does not support ENS' ) ) { return new ResolutionError ( ResolutionErrorCode . UnsupportedCurrency , { currencyTicker : 'Network' } ) ; } return null ; } ;