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

View file

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