From 185a2827cc363afbe1ee8681eacd47f093a90497 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 29 Dec 2021 13:43:48 +0300 Subject: [PATCH] Revert "[#1038] adm: Do not cut `data` args in `NNS`" This reverts commit acb4a9e5b49c5f92f4dd691b68e25c2a472e73ef. --- cmd/neofs-adm/internal/modules/morph/initialize_deploy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index 9e3913966..e21f86e0f 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -104,6 +104,9 @@ func (c *initializeContext) deployNNS(method string) error { } params := getContractDeployParameters(cs.RawNEF, cs.RawManifest, nil) + if method == updateMethodName { + params = params[:len(params)-1] // update has only NEF and manifest args + } signer := transaction.Signer{ Account: c.CommitteeAcc.Contract.ScriptHash(),