[#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:
parent
d26716e792
commit
159351fd55
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue