[#888] neofs-adm: deploy NNS contract first

Container contract uses actual NNS interface. This also aleviates some
pain related to update as neofs-adm code itself uses current NNS
version.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-07 15:09:40 +03:00 committed by Alex Vanin
parent 1177f0ca78
commit bca41f87af

View file

@ -13,9 +13,9 @@ func updateContracts(cmd *cobra.Command, _ []string) error {
return fmt.Errorf("initialization error: %w", err) return fmt.Errorf("initialization error: %w", err)
} }
if err := wCtx.deployContracts(updateMethodName); err != nil { if err := wCtx.deployNNS(updateMethodName); err != nil {
return err return err
} }
return wCtx.deployNNS("update") return wCtx.deployContracts(updateMethodName)
} }