Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small error in generateFunctionCall(item) code #1

Open
StefH opened this issue Dec 29, 2017 · 0 comments
Open

Small error in generateFunctionCall(item) code #1

StefH opened this issue Dec 29, 2017 · 0 comments

Comments

@StefH
Copy link

StefH commented Dec 29, 2017

<%_ 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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant