[#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>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-01-11 14:54:41 +03:00 committed by Alex Vanin
parent d26716e792
commit 159351fd55
1 changed files with 2 additions and 2 deletions

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)
}