Function ignoreEthCallException

  • ignore eth call exception and return undefined if that happened

    Type Parameters

    • Res

    Parameters

    • promise: Promise<Res>

      promise return by eth call

    • logError: boolean = false

      whether to log error

    Returns Promise<Res | undefined>