From ec27a96b8ca8fb69762bb088dbe31ca187f23c5f Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 30 Sep 2021 17:41:06 +0300 Subject: [PATCH] [#888] neofs-adm: dump NNS contract hash This can be useful for debugging. Signed-off-by: Evgenii Stratonikov --- cmd/neofs-adm/internal/modules/morph/dump.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/neofs-adm/internal/modules/morph/dump.go b/cmd/neofs-adm/internal/modules/morph/dump.go index f48a5fe7d5..b16b820c00 100644 --- a/cmd/neofs-adm/internal/modules/morph/dump.go +++ b/cmd/neofs-adm/internal/modules/morph/dump.go @@ -61,6 +61,8 @@ func dumpContractHashes(cmd *cobra.Command, _ []string) error { buf := bytes.NewBuffer(nil) tw := tabwriter.NewWriter(buf, 0, 2, 2, ' ', 0) + _, _ = tw.Write([]byte(fmt.Sprintf("%s:\t%s\n", nnsContract, cs.Hash.StringLE()))) + if irSize != 0 { bw.Reset() for i := 0; i < irSize; i++ {