From 9e30a87022a4e46ced52a28b5db8cde2c381ff84 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 24 Aug 2020 17:05:22 +0300 Subject: [PATCH] [#11] morph: Return nil on Any stack item array type Signed-off-by: Leonard Lyubich --- pkg/morph/client/util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/morph/client/util.go b/pkg/morph/client/util.go index 2fec25f50..9aa8a6077 100644 --- a/pkg/morph/client/util.go +++ b/pkg/morph/client/util.go @@ -94,6 +94,10 @@ func ArrayFromStackParameter(param sc.Parameter) ([]sc.Parameter, error) { } if param.Type != sc.ArrayType { + if param.Type == sc.AnyType && param.Value == nil { + return nil, nil + } + return nil, errors.Errorf("chain/client: %s is not an array type", param.Type) }