From 3ed3e2715b81d4d8d13f1c8ac0f4fa2c77ed4c27 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 7 Nov 2023 15:19:55 +0300 Subject: [PATCH] [#xx] adm: Drop notaryDisabled deploy parameter Refs https://git.frostfs.info/TrueCloudLab/frostfs-contract/pulls/50 Signed-off-by: Evgenii Stratonikov --- .../internal/modules/morph/initialize_deploy.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go index 8d46793e5..f6100f4f9 100644 --- a/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/frostfs-adm/internal/modules/morph/initialize_deploy.go @@ -505,8 +505,7 @@ func getContractDeployParameters(cs *contractState, deployData []any) []any { } func (c *initializeContext) getContractDeployData(ctrName string, keysParam []any, method string) []any { - items := make([]any, 1, 6) - items[0] = false // notaryDisabled is false + items := make([]any, 0, 6) switch ctrName { case frostfsContract: @@ -596,12 +595,11 @@ func (c *initializeContext) getNetConfigFromNetmapContract() ([]stackitem.Item, } func (c *initializeContext) getAlphabetDeployItems(i, n int) []any { - items := make([]any, 6) - items[0] = false - items[1] = c.Contracts[netmapContract].Hash - items[2] = c.Contracts[proxyContract].Hash - items[3] = innerring.GlagoliticLetter(i).String() - items[4] = int64(i) - items[5] = int64(n) + items := make([]any, 5) + items[0] = c.Contracts[netmapContract].Hash + items[1] = c.Contracts[proxyContract].Hash + items[2] = innerring.GlagoliticLetter(i).String() + items[3] = int64(i) + items[4] = int64(n) return items }