From 7df490e956a48f9edcf44a5c378dda44709f79f6 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 13 Feb 2024 19:01:14 +0300 Subject: [PATCH] neofs-adm: use registerTLD to register TLD It's the only way since neofs-contract 0.18.0, "register" just fails with Error: could not perform test invocation: script failed (FAULT state) due to an error: at instruction 1794 (THROW): unhandled exception: "TLD denied" Signed-off-by: Roman Khimov --- CHANGELOG.md | 1 + cmd/neofs-adm/internal/modules/morph/deploy.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ece39f3bd..91f108bb1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Changelog for NeoFS Node ### Added ### Fixed +- Inability to deploy contract with non-standard zone via neofs-adm ### Changed diff --git a/cmd/neofs-adm/internal/modules/morph/deploy.go b/cmd/neofs-adm/internal/modules/morph/deploy.go index 1b5708aa50..4c3a67217f 100644 --- a/cmd/neofs-adm/internal/modules/morph/deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/deploy.go @@ -126,8 +126,8 @@ func deployContractCmd(cmd *cobra.Command, args []string) error { } else if !ok { needRecord = true - emit.AppCall(bw.BinWriter, nnsCs.Hash, "register", callflag.All, - zone, c.CommitteeAcc.Contract.ScriptHash(), + emit.AppCall(bw.BinWriter, nnsCs.Hash, "registerTLD", callflag.All, + zone, "ops@nspcc.ru", int64(3600), int64(600), int64(defaultExpirationTime), int64(3600)) emit.Opcodes(bw.BinWriter, opcode.ASSERT)