From 9350d027cf75fac0cff21b1db99d6037b864f43a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 8 Dec 2021 14:51:42 +0300 Subject: [PATCH] [#194] container: Register TLD with contract as owner When notary disabled, there is no committee multi signature for named container creation. Therefore, zone owner should be the contract itself. Signed-off-by: Alex Vanin --- container/container_contract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/container_contract.go b/container/container_contract.go index c9dcb6f..10b7e5b 100644 --- a/container/container_contract.go +++ b/container/container_contract.go @@ -130,7 +130,7 @@ func registerNiceNameTLD(addrNNS interop.Hash160, nnsRoot string) { } res := contract.Call(addrNNS, "register", contract.All, - nnsRoot, common.CommitteeAddress(), "ops@nspcc.ru", + nnsRoot, runtime.GetExecutingScriptHash(), "ops@nspcc.ru", defaultRefresh, defaultRetry, defaultExpire, defaultTTL).(bool) if !res { panic("can't register NNS TLD")