* development: Updated contract generation in 0x to new abi-gen CLI Removed deprecated CLI options Added PR # to the changelog of abi-gen Added CLI options for explicit specifying location of partials and main template
16 lines
498 B
Handlebars
16 lines
498 B
Handlebars
public {{this.name}} = {
|
|
async callAsync(
|
|
{{> typed_params inputs=inputs}}
|
|
defaultBlock?: Web3.BlockParam,
|
|
): Promise<{{> return_type outputs=outputs}}> {
|
|
const self = this as {{contractName}}Contract;
|
|
const result = await promisify<{{> return_type outputs=outputs}}>(
|
|
self._web3ContractInstance.{{this.name}}.call,
|
|
self._web3ContractInstance,
|
|
)(
|
|
{{> params inputs=inputs}}
|
|
);
|
|
return result;
|
|
},
|
|
};
|