diff options
Diffstat (limited to 'test/utils/rpc.ts')
-rw-r--r-- | test/utils/rpc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/rpc.ts b/test/utils/rpc.ts index b689a938c..e331fa6d4 100644 --- a/test/utils/rpc.ts +++ b/test/utils/rpc.ts @@ -26,7 +26,7 @@ export class RPC { const didRevert = await this.sendAsync(payload); return didRevert; } - private toPayload(method: string, params: any[] = []) { + private toPayload(method: string, params: any[] = []): string { const payload = JSON.stringify({ id: this.id, method, @@ -35,7 +35,7 @@ export class RPC { this.id += 1; return payload; } - private async sendAsync(payload: string) { + private async sendAsync(payload: string): Promise<any> { const opts = { method: 'POST', uri: `http://${this.host}:${this.port}`, |