Added default EtherscanProvider key.
This commit is contained in:
parent
2fdf995e8a
commit
311af88cfa
@ -71,6 +71,8 @@ function checkLogTag(blockTag: string): number | "latest" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const defaultApiKey = "9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";
|
||||||
|
|
||||||
export class EtherscanProvider extends BaseProvider{
|
export class EtherscanProvider extends BaseProvider{
|
||||||
readonly baseUrl: string;
|
readonly baseUrl: string;
|
||||||
readonly apiKey: string;
|
readonly apiKey: string;
|
||||||
@ -104,7 +106,7 @@ export class EtherscanProvider extends BaseProvider{
|
|||||||
}
|
}
|
||||||
|
|
||||||
defineReadOnly(this, "baseUrl", baseUrl);
|
defineReadOnly(this, "baseUrl", baseUrl);
|
||||||
defineReadOnly(this, "apiKey", apiKey);
|
defineReadOnly(this, "apiKey", apiKey || defaultApiKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user