fixed public check function

This commit is contained in:
CryptoCompiler
2021-01-22 17:22:07 +00:00
committed by GitHub
parent d6799b891e
commit 0ac74140c3

View File

@@ -69,7 +69,7 @@ export default class RequestUtil {
* @private Make a HTTP request to a specific endpoint. Private endpoints are automatically signed. * @private Make a HTTP request to a specific endpoint. Private endpoints are automatically signed.
*/ */
async _call(method: Method, endpoint: string, params?: any): GenericAPIResponse { async _call(method: Method, endpoint: string, params?: any): GenericAPIResponse {
const isPublicEndpoint = (endpoint: string): boolean { const isPublicEndpoint = (endpoint: string): boolean => {
if (endpoint.startsWith('v2/public')) { if (endpoint.startsWith('v2/public')) {
return true; return true;
} }