diff --git a/src/main/entry/org/bdware/sc/bean/DefaultRouteRule.java b/src/main/entry/org/bdware/sc/bean/DefaultRouteRule.java index 1355e0d..cb7ee57 100644 --- a/src/main/entry/org/bdware/sc/bean/DefaultRouteRule.java +++ b/src/main/entry/org/bdware/sc/bean/DefaultRouteRule.java @@ -3,5 +3,6 @@ package org.bdware.sc.bean; public enum DefaultRouteRule { byRequester, byArgHash, - byTarget; + byTarget, + byFunc; } diff --git a/src/main/entry/org/bdware/sc/bean/RouteInfo.java b/src/main/entry/org/bdware/sc/bean/RouteInfo.java index e004d7d..b923ebb 100644 --- a/src/main/entry/org/bdware/sc/bean/RouteInfo.java +++ b/src/main/entry/org/bdware/sc/bean/RouteInfo.java @@ -9,6 +9,8 @@ import java.io.Serializable; public class RouteInfo implements Serializable { public DefaultRouteRule useDefault; + public String funcName; + public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) { RouteInfo info = new RouteInfo(); info.useDefault = null;