From 9f8eb0fd511fd69f728015d29fd0ca0ce64807d9 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 5 Nov 2020 16:41:44 +0300 Subject: [PATCH] [#152] Use ID in SetConfig contract method invocation. Signed-off-by: Alex Vanin --- pkg/innerring/invoke/netmap.go | 2 ++ pkg/innerring/processors/neofs/process_config.go | 1 + 2 files changed, 3 insertions(+) diff --git a/pkg/innerring/invoke/netmap.go b/pkg/innerring/invoke/netmap.go index 66f94e445d..9fc319c156 100644 --- a/pkg/innerring/invoke/netmap.go +++ b/pkg/innerring/invoke/netmap.go @@ -19,6 +19,7 @@ type ( } SetConfigArgs struct { + ID []byte Key []byte Value []byte } @@ -90,6 +91,7 @@ func SetConfig(cli *client.Client, con util.Uint160, args *SetConfigArgs) error } return cli.Invoke(con, extraFee, setConfigMethod, + args.ID, args.Key, args.Value, ) diff --git a/pkg/innerring/processors/neofs/process_config.go b/pkg/innerring/processors/neofs/process_config.go index 407884640d..443344ac7f 100644 --- a/pkg/innerring/processors/neofs/process_config.go +++ b/pkg/innerring/processors/neofs/process_config.go @@ -16,6 +16,7 @@ func (np *Processor) processConfig(config *neofsEvent.Config) { err := invoke.SetConfig(np.morphClient, np.netmapContract, &invoke.SetConfigArgs{ + ID: config.ID(), Key: config.Key(), Value: config.Value(), },