From c180c405b5014d7c4732a2da17b73d1d88bf67f9 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 21 Nov 2022 15:21:11 +0300 Subject: [PATCH] [#2078] adm: Pack parameters for `setPrice` invocation Contract arguments have to be packed. Signed-off-by: Alex Vanin --- CHANGELOG.md | 1 + cmd/neofs-adm/internal/modules/morph/initialize_deploy.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bce7c267e..bb2d23bd53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ Changelog for NeoFS Node - Panic in IR when performing HEAD requests (#2069) - Write-cache flush duplication (#2074) - Ignore error if a transaction already exists in a morph client (#2075) +- Pack arguments of `setPrice` invocation during contract update (#2078) ### Removed ### Updated diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index 605d92debb..9aaf097af0 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -287,6 +287,8 @@ func (c *initializeContext) updateContracts() error { c.Command.Printf("NNS: Set %s -> %s\n", morphClient.NNSGroupKeyName, hex.EncodeToString(groupKey.Bytes())) emit.Opcodes(w.BinWriter, opcode.LDSFLD0) + emit.Int(w.BinWriter, 1) + emit.Opcodes(w.BinWriter, opcode.PACK) emit.AppCallNoArgs(w.BinWriter, nnsHash, "setPrice", callflag.All) if err := c.sendCommitteeTx(w.Bytes(), false); err != nil {