[#888] neofs-adm: deploy contracts with Global scope

Container contract now calls NNS contract to register TLD for nice
names. This must be witnessed by a committee.

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

View file

@ -223,7 +223,7 @@ func (c *initializeContext) deployContracts(method string) error {
c.getContractDeployData(ctrName, keysParam))
signer := transaction.Signer{
Account: c.CommitteeAcc.Contract.ScriptHash(),
Scopes: transaction.CalledByEntry,
Scopes: transaction.Global,
}
res, err := c.Client.InvokeFunction(invokeHash, method, params, []transaction.Signer{signer})