forked from TrueCloudLab/frostfs-node
[#2078] adm: Pack parameters for `setPrice` invocation
Contract arguments have to be packed. Signed-off-by: Alex Vanin <a.vanin@yadro.com>fyrchik/simplify-services
parent
51963abce7
commit
8d15c14be6
|
@ -41,6 +41,7 @@ Changelog for NeoFS Node
|
||||||
- Write-cache flush duplication (#2074)
|
- Write-cache flush duplication (#2074)
|
||||||
- Ignore error if a transaction already exists in a morph client (#2075)
|
- Ignore error if a transaction already exists in a morph client (#2075)
|
||||||
- ObjectID signature output in the CLI (#2104)
|
- ObjectID signature output in the CLI (#2104)
|
||||||
|
- Pack arguments of `setPrice` invocation during contract update (#2078)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089)
|
- `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089)
|
||||||
|
|
|
@ -286,6 +286,8 @@ func (c *initializeContext) updateContracts() error {
|
||||||
c.Command.Printf("NNS: Set %s -> %s\n", morphClient.NNSGroupKeyName, hex.EncodeToString(groupKey.Bytes()))
|
c.Command.Printf("NNS: Set %s -> %s\n", morphClient.NNSGroupKeyName, hex.EncodeToString(groupKey.Bytes()))
|
||||||
|
|
||||||
emit.Opcodes(w.BinWriter, opcode.LDSFLD0)
|
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)
|
emit.AppCallNoArgs(w.BinWriter, nnsHash, "setPrice", callflag.All)
|
||||||
|
|
||||||
if err := c.sendCommitteeTx(w.Bytes(), false); err != nil {
|
if err := c.sendCommitteeTx(w.Bytes(), false); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue