From 3bbd0bc95c4acda26079c65ff418f4b5f353d1cb Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 11 Jan 2021 16:27:35 +0300 Subject: [PATCH] [#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 --- pkg/innerring/invoke/netmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/innerring/invoke/netmap.go b/pkg/innerring/invoke/netmap.go index aba384ae..56c14bef 100644 --- a/pkg/innerring/invoke/netmap.go +++ b/pkg/innerring/invoke/netmap.go @@ -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(), ) }