From 3e5c7e0adeccaebbb7926a5d5d0674d412f6afa2 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 21 Sep 2021 15:32:47 +0300 Subject: [PATCH] [#836] neofs-adm: Fix proxy contract deploy arguments Proxy contract does not include notary flag because contract is useless without notary subsystem. Signed-off-by: Alex Vanin --- cmd/neofs-adm/internal/modules/morph/initialize_deploy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index 75d915da..14d21795 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -344,7 +344,9 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []sm newContractParameter(smartcontract.ArrayType, keysParam), newContractParameter(smartcontract.ArrayType, configParam)) case proxyContract: - items = append(items, newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash)) + items = []smartcontract.Parameter{ + newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash), + } case reputationContract: default: panic(fmt.Sprintf("invalid contract name: %s", ctrName))