From 4c30757439b78c85228c71025ae249158c48a7c6 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 21 Sep 2021 15:31:32 +0300 Subject: [PATCH] [#836] neofs-adm: Do not define contract owner Contract owners are removed in neofs-contract v0.11.0. Now side chain committee has rights to update contracts. Signed-off-by: Alex Vanin --- cmd/neofs-adm/internal/modules/morph/initialize_deploy.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index f5fa2d00..75d915da 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -289,9 +289,8 @@ func getContractDeployParameters(rawNef, rawManif []byte, deployData []smartcont } func (c *initializeContext) getContractDeployData(ctrName string, keysParam []smartcontract.Parameter) []smartcontract.Parameter { - items := make([]smartcontract.Parameter, 2, 7) - items[0] = newContractParameter(smartcontract.BoolType, false) // notaryDisabled is false - items[1] = newContractParameter(smartcontract.Hash160Type, c.CommitteeAcc.Contract.ScriptHash()) // owner is committee + items := make([]smartcontract.Parameter, 1, 6) + items[0] = newContractParameter(smartcontract.BoolType, false) // notaryDisabled is false switch ctrName { case neofsContract: @@ -356,7 +355,6 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []sm func (c *initializeContext) getAlphabetDeployParameters(i, n int) []smartcontract.Parameter { return []smartcontract.Parameter{ newContractParameter(smartcontract.BoolType, false), - newContractParameter(smartcontract.Hash160Type, c.CommitteeAcc.Contract.ScriptHash()), newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash), newContractParameter(smartcontract.Hash160Type, c.Contracts[proxyContract].Hash), newContractParameter(smartcontract.StringType, innerring.GlagoliticLetter(i).String()),