From 8db5c8e2d7266859ef0a09680aa7e6db25a746f4 Mon Sep 17 00:00:00 2001 From: WangXuxin Date: Tue, 22 Mar 2022 20:35:47 +0800 Subject: [PATCH] fix: verifyOracleAndContractPermission --- src/main/java/org/bdware/sc/ContractProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(