From 6520d00ff06ede3d75fbadc37a095e863368d3d4 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 27 Aug 2020 14:57:52 +0300 Subject: [PATCH] [#14] Adopt stackitems in inner ring Signed-off-by: Alex Vanin --- pkg/innerring/invoke/neofs.go | 2 +- pkg/innerring/invoke/netmap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/innerring/invoke/neofs.go b/pkg/innerring/invoke/neofs.go index e7df4151c..5632b9c7c 100644 --- a/pkg/innerring/invoke/neofs.go +++ b/pkg/innerring/invoke/neofs.go @@ -45,7 +45,7 @@ func IsInnerRing(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (bo return false, err } - isInnerRing, err := client.BoolFromStackParameter(val[0]) + isInnerRing, err := client.BoolFromStackItem(val[0]) if err != nil { return false, err } diff --git a/pkg/innerring/invoke/netmap.go b/pkg/innerring/invoke/netmap.go index 7bfd34759..783d3b488 100644 --- a/pkg/innerring/invoke/netmap.go +++ b/pkg/innerring/invoke/netmap.go @@ -21,7 +21,7 @@ func Epoch(cli *client.Client, con util.Uint160) (int64, error) { return 0, err } - epoch, err := client.IntFromStackParameter(val[0]) + epoch, err := client.IntFromStackItem(val[0]) if err != nil { return 0, err }