feat: support @RouteInfo byFunc

This commit is contained in:
WangXuxin 2022-04-27 10:23:33 +08:00
parent 8bf4b1c57d
commit 7a9ce393cd
2 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,6 @@ package org.bdware.sc.bean;
public enum DefaultRouteRule {
byRequester,
byArgHash,
byTarget;
byTarget,
byFunc;
}

View File

@ -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;