From 38611d88243065e02c5c669225c34d6b1f48c732 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Tue, 28 Nov 2023 10:32:56 +0300 Subject: [PATCH] [#828] adm: Fix policy contract deploy Signed-off-by: Airat Arifullin --- cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go index 5183114f9..4ba72ef41 100644 --- a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go @@ -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)) } -- 2.45.2