adm: Fix policy contract deploy #828

Merged
fyrchik merged 1 commit from fix/deploy_policy_contract into master 2023-11-29 06:23:58 +00:00

View file

@ -575,8 +575,10 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
c.Contracts[containerContract].Hash, c.Contracts[containerContract].Hash,
keysParam, keysParam,
configParam) configParam)
case proxyContract, policyContract: case proxyContract:
items = nil items = nil
case policyContract:
items = []any{nil}
default: default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName)) panic(fmt.Sprintf("invalid contract name: %s", ctrName))
} }