diff options
Diffstat (limited to 'packages/contracts/contract_templates/partials/call.handlebars')
-rw-r--r-- | packages/contracts/contract_templates/partials/call.handlebars | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/contracts/contract_templates/partials/call.handlebars b/packages/contracts/contract_templates/partials/call.handlebars new file mode 100644 index 000000000..82a45b40e --- /dev/null +++ b/packages/contracts/contract_templates/partials/call.handlebars @@ -0,0 +1,10 @@ +public async {{this.name}}( +{{> typed_params inputs=inputs}} + defaultBlock?: Web3.BlockParam, +): Promise<{{> return_type outputs=outputs}}> { + const self = this as {{contractName}}Contract; + const result = await self._web3ContractInstance.{{this.name}}.call( + {{> params inputs=inputs}} + ); + return result; +} |