Added default API key for EtherscanProvider.

This commit is contained in:
Richard Moore 2020-02-16 16:29:29 -05:00
parent 4e41871fa4
commit a930047a10
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -73,6 +73,7 @@ function checkLogTag(blockTag: string): number | "latest" {
return parseInt(blockTag.substring(2), 16); return parseInt(blockTag.substring(2), 16);
} }
const defaultApiKey = "8FG3JMZ9USS4NTA6YKEKHINU56SEPPVBJR";
export class EtherscanProvider extends BaseProvider{ export class EtherscanProvider extends BaseProvider{
readonly baseUrl: string; readonly baseUrl: string;
@ -106,7 +107,7 @@ export class EtherscanProvider extends BaseProvider{
} }
defineReadOnly(this, 'baseUrl', baseUrl); defineReadOnly(this, 'baseUrl', baseUrl);
defineReadOnly(this, 'apiKey', apiKey); defineReadOnly(this, 'apiKey', apiKey || defaultApiKey);
} }