[#749] neofs-adm: save group public key in NNS

Query `group.neofs` instead of retrieving individual manifest.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-11-29 15:58:45 +03:00 committed by Alex Vanin
parent def1bbc84c
commit e4bc9c7fad
3 changed files with 80 additions and 7 deletions

View file

@ -272,9 +272,12 @@ func (c *initializeContext) updateContracts() error {
}
}
if w.Err != nil {
return w.Err
sysFee, err := c.emitUpdateNNSGroupScript(w, nnsHash, c.ContractWallet.Accounts[0].PrivateKey().PublicKey())
if err != nil {
return err
}
totalGasCost += sysFee
if err := c.sendCommitteeTx(w.Bytes(), totalGasCost); err != nil {
return err
}