forked from TrueCloudLab/frostfs-node
[#1014] neofs-adm: Print NNS contract version
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
3d5eb2a396
commit
c383fc6929
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue