Fix problem related with DeployerWhiteListEnabled in deployhandler
@@ -161,11 +161,10 @@ func (h *DeployHandler) ExecuteSync(cc CallContext) (error, *codec.TypedObj, mod
return scoreresult.ErrOutOfStep, nil, nil
}
+ if update == false {
if cc.DeployerWhiteListEnabled() == true && !cc.IsDeployer(h.from.String()) {
return scoreresult.ErrAccessDenied, nil, nil
}
-
- if update == false {
if as.InitContractAccount(h.from) == false {
return errors.ErrExecutionFail, nil, nil
}
