Skip to content

Commit

Permalink
[#2078] adm: Pack parameters for setPrice invocation
Browse files Browse the repository at this point in the history
Contract arguments have to be packed.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
  • Loading branch information
alexvanin committed Nov 21, 2022
1 parent 02049ca commit 6cd66b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions cmd/neofs-adm/internal/modules/morph/initialize_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6cd66b9

Please sign in to comment.