[#298] morph/netmap: Fix invocation of UpdateState contract method

Fix incorrect method name. Fix the order of arguments (should be {state,
key}).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-11 14:54:41 +03:00 committed by Alex Vanin
parent d26716e792
commit 159351fd55

View file

@ -27,8 +27,8 @@ func (u *UpdateStateArgs) SetState(v int64) {
// of NeoFS Netmap contract.
func (c *Client) UpdateState(args UpdateStateArgs) error {
return errors.Wrapf(c.client.Invoke(
c.addPeerMethod,
args.key,
c.updateStateMethod,
args.state,
args.key,
), "could not invoke method (%s)", c.updateStateMethod)
}