Added default EtherscanProvider key.

This commit is contained in:
Richard Moore 2020-02-17 18:14:02 -05:00
parent 2fdf995e8a
commit 311af88cfa
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

View File

@ -71,6 +71,8 @@ function checkLogTag(blockTag: string): number | "latest" {
}
const defaultApiKey = "9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";
export class EtherscanProvider extends BaseProvider{
readonly baseUrl: string;
readonly apiKey: string;
@ -104,7 +106,7 @@ export class EtherscanProvider extends BaseProvider{
}
defineReadOnly(this, "baseUrl", baseUrl);
defineReadOnly(this, "apiKey", apiKey);
defineReadOnly(this, "apiKey", apiKey || defaultApiKey);
}