From 3c92f29d6387131bc665275a5d7505acf2368fd7 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Mon, 1 Nov 2021 17:30:01 +0800 Subject: [PATCH] feat: add isView in FunctionDesp add FunctionDesp.isView to tell contract manager if the function is view --- src/main/java/org/bdware/sc/ContractProcess.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bdware/sc/ContractProcess.java b/src/main/java/org/bdware/sc/ContractProcess.java index f786a9e..0be6ca3 100644 --- a/src/main/java/org/bdware/sc/ContractProcess.java +++ b/src/main/java/org/bdware/sc/ContractProcess.java @@ -1065,7 +1065,7 @@ public class ContractProcess { } @Override - public void finalize() { + protected void finalize() { } public String getDeclaredEvents() { @@ -1082,7 +1082,7 @@ public class ContractProcess { if (fn.isExport() && !fn.functionName.equals("onCreate")) { function.add(fn.functionName); FunctionDesp desp = - new FunctionDesp(fn.functionName, fn.annotations, fn.getRouteInfo()); + new FunctionDesp(fn.functionName, fn.annotations, fn.getRouteInfo(), fn.isView()); ret.add(desp); } }