add default constructor for Function object
package org.fisco.bcos.web3j.abi.datatypes;
+import java.util.Collections;
import java.util.List;
import org.fisco.bcos.web3j.abi.TypeReference;
import org.fisco.bcos.web3j.abi.Utils;
@@ -17,6 +18,12 @@ public class Function {
this.outputParameters = Utils.convert(outputParameters);
}
+ public Function() {
+ this.name = "";
+ this.inputParameters = Collections.<Type>emptyList();
+ this.outputParameters = Collections.<TypeReference<Type>>emptyList();
+ }
+
public String getName() {
return name;
}
