From 159351fd55cee667aea8cc8a513425c864d104c1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 11 Jan 2021 14:54:41 +0300 Subject: [PATCH] [#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 --- pkg/morph/client/netmap/update_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/morph/client/netmap/update_state.go b/pkg/morph/client/netmap/update_state.go index 2a825a30..ad50d7d0 100644 --- a/pkg/morph/client/netmap/update_state.go +++ b/pkg/morph/client/netmap/update_state.go @@ -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) }