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}}