From 70c8313226ca3997c33923dcbeb401508c0ad733 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Mon, 15 Nov 2021 17:52:16 +0800 Subject: [PATCH] fix: fix bugs fix bugs in ContractManager.executeContractInternal --- src/main/java/org/bdware/sc/ContractManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/bdware/sc/ContractManager.java b/src/main/java/org/bdware/sc/ContractManager.java index 8bff915..209bbca 100644 --- a/src/main/java/org/bdware/sc/ContractManager.java +++ b/src/main/java/org/bdware/sc/ContractManager.java @@ -1480,8 +1480,7 @@ public class ContractManager { if (null != client.contractMeta.seekFunction(cr.getAction()) && client.contractMeta.exportedFunctions.get(cr.getAction()).isView) { executeLocallyAsync(cr, rcb, hcb); - } - if (multiMeta != null && multiMeta.isMaster()) { + } else if (multiMeta != null && multiMeta.isMaster()) { masterStub.executeByMaster(client, rcb, cr); } else { executeContractOnOtherNodes(cr, rcb);