diff --git a/src.ts/providers/abstract-provider.ts b/src.ts/providers/abstract-provider.ts index 2d4a98bd3..e77df2ba1 100644 --- a/src.ts/providers/abstract-provider.ts +++ b/src.ts/providers/abstract-provider.ts @@ -980,7 +980,7 @@ export class AbstractProvider implements Provider { //return "TODO"; } - async waitForTransaction(hash: string, _confirms?: number, timeout?: number): Promise { + async waitForTransaction(hash: string, _confirms?: null | number, timeout?: null | number): Promise { const confirms = (_confirms != null) ? _confirms: 1; if (confirms === 0) { return this.getTransactionReceipt(hash); }