From 419b07e8b881db1b351e2f5197a2543bda76208e Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 21 Dec 2023 12:16:55 +0300 Subject: [PATCH] [#883] adm: Use proxy contract as admin for frostfsid and policy contracts Signed-off-by: Alex Vanin --- cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go index 533fcad4..436ba93d 100644 --- a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go @@ -546,7 +546,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an if found { items = append(items, h) } else { - items = append(items, nil) + items = append(items, c.Contracts[proxyContract].Hash) } case netmapContract: md := getDefaultNetmapContractConfigMap() @@ -582,7 +582,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an case proxyContract: items = nil case policyContract: - items = []any{nil} + items = append(items, c.Contracts[proxyContract].Hash) default: panic(fmt.Sprintf("invalid contract name: %s", ctrName)) }