From a6da9cd07389b317624ad00a3cb73b75820687e1 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 26 May 2017 17:47:00 +0200 Subject: Add missing return types --- test/utils/blockchain_clean.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/utils/blockchain_clean.ts') diff --git a/test/utils/blockchain_clean.ts b/test/utils/blockchain_clean.ts index 6468dbec7..18b7e3a5b 100644 --- a/test/utils/blockchain_clean.ts +++ b/test/utils/blockchain_clean.ts @@ -7,10 +7,10 @@ export class BlockchainClean { this.rpc = new RPC(); } // TODO: Check if running on TestRPC or on actual node, if actual node, re-deploy contracts instead - public async setupAsync() { + public async setupAsync(): Promise { this.snapshotId = await this.rpc.takeSnapshotAsync(); } - public async restoreAsync() { + public async restoreAsync(): Promise { const didRevert = await this.rpc.revertSnapshotAsync(this.snapshotId); if (!didRevert) { throw new Error(`Snapshot with id #${this.snapshotId} failed to revert`); -- cgit v1.2.3