aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/contract_templates/partials/call.handlebars
blob: 82a45b40ee3ffd782255728de944ee319e0b8435 (plain) (blame)
1
2
3
4
5
6
7
8
9
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;
}