[#16] Update neo-go and neofs-api-go dependencies

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-01 14:12:34 +03:00
parent b7d4830108
commit 27fcf2cc1d
3 changed files with 3 additions and 4 deletions

4
go.mod
View file

@ -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

BIN
go.sum

Binary file not shown.

View file

@ -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