From afd4d77452d611498d3cf032e7ceec74ebd00232 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 16 May 2018 16:21:53 -0400 Subject: [PATCH] Adding "await" --- lib/modules/scaffolding-test/templates/test.js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/scaffolding-test/templates/test.js.tpl b/lib/modules/scaffolding-test/templates/test.js.tpl index 90c5bece..9dbf5e37 100644 --- a/lib/modules/scaffolding-test/templates/test.js.tpl +++ b/lib/modules/scaffolding-test/templates/test.js.tpl @@ -19,7 +19,7 @@ describe("{{title}}", function() { {{#ifview stateMutability}} let result = await {{../contractName}}.methods{{methodname ../functions name inputs}}({{#each inputs}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}).call() {{else}} - let receipt = {{../contractName}}.methods{{methodname ../functions name inputs}}({{#each inputs}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}).send({ + let receipt = await {{../contractName}}.methods{{methodname ../functions name inputs}}({{#each inputs}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}).send({ {{#if payable}} value: 0, {{/if}}