Fixed abstract Provider signature issue (#2190).

This commit is contained in:
Richard Moore 2021-10-20 03:54:24 -04:00
parent d3079745c5
commit 1bd91615ee
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -274,8 +274,8 @@ export abstract class Provider implements OnceBlockable {
abstract getLogs(filter: Filter): Promise<Array<Log>>; abstract getLogs(filter: Filter): Promise<Array<Log>>;
// ENS // ENS
abstract resolveName(name: string | Promise<string>): Promise<string>; abstract resolveName(name: string | Promise<string>): Promise<null | string>;
abstract lookupAddress(address: string | Promise<string>): Promise<string>; abstract lookupAddress(address: string | Promise<string>): Promise<null | string>;
// Event Emitter (ish) // Event Emitter (ish)
abstract on(eventName: EventType, listener: Listener): Provider; abstract on(eventName: EventType, listener: Listener): Provider;