Allow arbitrary apiKey for UrlJsonRpcProvider.

This commit is contained in:
Richard Moore 2020-01-20 19:27:33 -05:00
parent a055edb585
commit 5878b54d6e
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -13,7 +13,7 @@ import { JsonRpcProvider, JsonRpcSigner } from "./json-rpc-provider";
type getUrlFunc = (network: Network, apiKey: string) => string | ConnectionInfo; type getUrlFunc = (network: Network, apiKey: string) => string | ConnectionInfo;
export abstract class UrlJsonRpcProvider extends JsonRpcProvider { export abstract class UrlJsonRpcProvider extends JsonRpcProvider {
readonly apiKey: string; readonly apiKey: any;
constructor(network?: Networkish, apiKey?: any) { constructor(network?: Networkish, apiKey?: any) {
logger.checkAbstract(new.target, UrlJsonRpcProvider); logger.checkAbstract(new.target, UrlJsonRpcProvider);