From 27fcf2cc1d9034ad33e147f36c6b143110a89590 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 1 Sep 2020 14:12:34 +0300 Subject: [PATCH] [#16] Update neo-go and neofs-api-go dependencies Signed-off-by: Alex Vanin --- go.mod | 4 ++-- go.sum | Bin 68944 -> 69362 bytes pkg/morph/client/util.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 04fcf330b..062e41f3d 100644 --- a/go.mod +++ b/go.mod @@ -15,8 +15,8 @@ require ( github.com/multiformats/go-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2 github.com/multiformats/go-multihash v0.0.13 github.com/nspcc-dev/hrw v1.0.9 - github.com/nspcc-dev/neo-go v0.91.0 - github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200821125006-afd2ce0400ec + github.com/nspcc-dev/neo-go v0.91.1-pre.0.20200827184617-7560aa345a78 + github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200901143416-cf66f44adb32 github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/nspcc-dev/netmap v1.7.0 github.com/nspcc-dev/tzhash v1.4.0 // indirect diff --git a/go.sum b/go.sum index 833bb10bdd897709331752bf926320cc5288f2c6..1bc61495916e7bd2832c6aa60bad398a5fd9d890 100644 GIT binary patch delta 212 zcmcaGi{;Z?mJQYAlNHLjf(&&Fic<9q^o$IQ3=Axc%ndC}%nZ$S%}vb=5)+M0OcTv5 z6fz90ic35bwey@Jye&#yBK5tZ5-U8TsvJYpva8Y(^Gm|Yjogy*JSzN65~DmPCzeZr zj8-PX=*imU0U)&oh9FBS^KuK*LR?Ktz0*sKvpu6+%o4-G3_V?3lEN#KfqH UD^r6V&9Y&ZFdA;wE?1of0R03(TL1t6 delta 14 Wcmew~m*v7NmJQYAn`JAnP6Yrr&j(ik diff --git a/pkg/morph/client/util.go b/pkg/morph/client/util.go index f3cb65a21..ea6d600e5 100644 --- a/pkg/morph/client/util.go +++ b/pkg/morph/client/util.go @@ -136,7 +136,7 @@ func StringFromStackParameter(param sc.Parameter) (string, error) { func BoolFromStackItem(param stackitem.Item) (bool, error) { switch param.Type() { case stackitem.BooleanT, stackitem.IntegerT, stackitem.ByteArrayT: - return param.Bool(), nil + return param.TryBool() default: return false, errors.Errorf("chain/client: %s is not a bool type", param.Type()) } @@ -174,7 +174,6 @@ func BytesFromStackItem(param stackitem.Item) ([]byte, error) { // // If passed parameter carries boolean false value, (nil, nil) returns. func ArrayFromStackItem(param stackitem.Item) ([]stackitem.Item, error) { - // if param.Type() switch param.Type() { case stackitem.AnyT: return nil, nil