diff --git a/src/main/java/org/bdware/sc/ContractProcess.java b/src/main/java/org/bdware/sc/ContractProcess.java index 05e8799..bfe3d4d 100644 --- a/src/main/java/org/bdware/sc/ContractProcess.java +++ b/src/main/java/org/bdware/sc/ContractProcess.java @@ -427,7 +427,7 @@ public class ContractProcess { // 判断是否满足Oracle和Contact的执行要求 public String verifyOracleAndContractPermission(Contract contract) { // 权限校验 如果是Oracle 启动方式只能是Sole 否则报错 - if (cn.getYjsType() == YjsType.Oracle && contract.getType() != ContractExecType.Sole) { + if (cn.getYjsType() == YjsType.Oracle && contract.getType() != ContractExecType.Sole && contract.getType() != ContractExecType.Sharding) { LOGGER.info("Oracle only support Sole ContractType!"); return JsonUtil.toJson( new ContractResult(