Adding "await"

This commit is contained in:
Richard Ramos 2018-05-16 16:21:53 -04:00
parent da88874f0c
commit afd4d77452
1 changed files with 1 additions and 1 deletions

View File

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