Allow arbitrary apiKey for UrlJsonRpcProvider.
This commit is contained in:
parent
a055edb585
commit
5878b54d6e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user