forked from TrueCloudLab/frostfs-node
[#152] Use ID in SetConfig contract method invocation.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
7c1776a281
commit
9f8eb0fd51
2 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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(),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue