Skip to content

Small error in generateFunctionCall(item) code #1

@StefH

Description

@StefH
<%_ function generateFunctionCall(item) { _%>
    <%_ if(item.type === 'function' && (item.outputs !=- null && item.outputs.length === 1)) { _%>
        public Task<%- getGenericReturnType(item) -%> <%= capitalizeFirstLetter(item.name) %>AsyncCall(<%- generateFunctionInputParameters(item) -%>) {
            var function = GetFunction<%=capitalizeFirstLetter(item.name)%>();
            return function.CallAsync<%- getGenericReturnType(item) -%>(<%- generateFunctionParameters(item) -%>);
        }
<%_ } } 

See https://github.com/Nethereum/abi-code-gen/blob/master/templates/cs-service.ejs#L251

item.outputs !=- null should be item.outputs !== null ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions