no parameter fix
@@ -134,13 +134,17 @@ func ParseArgumentsWithoutType(fileName string, code []byte, args []string) (scr
transactionDeclaration := program.SoleTransactionDeclaration()
if transactionDeclaration != nil {
+ if transactionDeclaration.ParameterList != nil {
parameterList = transactionDeclaration.ParameterList.Parameters
}
+ }
functionDeclaration := sema.FunctionEntryPointDeclaration(program)
if functionDeclaration != nil {
+ if functionDeclaration.ParameterList != nil {
parameterList = functionDeclaration.ParameterList.Parameters
}
+ }
if parameterList == nil {
return resultArgs, nil
