[#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 <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-09-21 15:31:32 +03:00 committed by Alex Vanin
parent ce8a906bb5
commit 4c30757439

View file

@ -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()),