[#888] neofs-adm: dump NNS contract hash

This can be useful for debugging.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-09-30 17:41:06 +03:00 committed by Alex Vanin
parent 57007f4a52
commit ec27a96b8c

View file

@ -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++ {