aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/rpc.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-26 23:47:00 +0800
committerFabio Berger <me@fabioberger.com>2017-05-26 23:47:00 +0800
commita6da9cd07389b317624ad00a3cb73b75820687e1 (patch)
treea7e488b85e308b9cfa6e4dcd144bfaf2e9843062 /test/utils/rpc.ts
parent1d4a52fe15988fb8534c441c539f55dd5d18db1a (diff)
downloaddexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar.gz
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar.bz2
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar.lz
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar.xz
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.tar.zst
dexon-sol-tools-a6da9cd07389b317624ad00a3cb73b75820687e1.zip
Add missing return types
Diffstat (limited to 'test/utils/rpc.ts')
-rw-r--r--test/utils/rpc.ts4
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}`,