diff --git a/src/keeper/EventHandler.ts b/src/keeper/EventHandler.ts index 86c4874..1436625 100644 --- a/src/keeper/EventHandler.ts +++ b/src/keeper/EventHandler.ts @@ -57,6 +57,6 @@ export class EventHandler extends Instantiable { this.events.forEach((fn) => fn(this.lastBlock + 1)) this.lastBlock = blockNumber } - this.lastTimeout = setTimeout(() => this.checkBlock(true, n++), this.interval) + this.lastTimeout = global.setTimeout(() => this.checkBlock(true, n++), this.interval) } } diff --git a/tsconfig.json b/tsconfig.json index f4fac70..1bdc8b5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "es2017", "es6", "es7", - "DOM" + "dom" ], "declaration": true, "module": "commonjs", @@ -27,7 +27,6 @@ ], "exclude": [ "node_modules", - "**/*.test.ts", - "src/examples" + "**/*.test.ts" ] }