[#828] adm: Fix policy contract deploy

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2023-11-28 10:32:56 +03:00 committed by Evgenii Stratonikov
parent 5521737f0b
commit 306f12e6c5

View file

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