[#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 <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-12-08 14:51:42 +03:00 committed by Alex Vanin
parent af1978580c
commit 9350d027cf
1 changed files with 1 additions and 1 deletions

View File

@ -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")