Adding "await"
This commit is contained in:
parent
da88874f0c
commit
afd4d77452
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue