[#1014] neofs-adm: Print NNS contract version

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-12-07 15:50:11 +03:00 committed by Alex Vanin
parent 3d5eb2a396
commit c383fc6929

View file

@ -98,7 +98,7 @@ func dumpContractHashes(cmd *cobra.Command, _ []string) error {
bw.Reset()
for i := range infos {
if i == 0 || infos[i].hash.Equals(util.Uint160{}) { // current NNS contract has no Version method
if infos[i].hash.Equals(util.Uint160{}) {
emit.Int(bw.BinWriter, 0)
} else {
emit.AppCall(bw.BinWriter, infos[i].hash, "version", callflag.NoneFlag)