[#300] innerring: Fix status value in update peer state invocation

We can't use enum values from SDK library directly, they can be
different from API specification. Therefore we need to convert them
into protocol level format.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-11 16:27:35 +03:00 committed by Alex Vanin
parent 27711d64f0
commit 3bbd0bc95c

View file

@ -76,7 +76,7 @@ func UpdatePeerState(cli *client.Client, con util.Uint160, args *UpdatePeerArgs)
}
return cli.Invoke(con, extraFee, updatePeerStateMethod,
int64(args.Status),
int64(args.Status.ToV2()),
args.Key.Bytes(),
)
}