[#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 7 additions and 4 deletions

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