From c299de5de944abe52426d0489e9c5ef0f6a5b99d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 31 Aug 2020 18:17:31 +0300 Subject: [PATCH] [#15] Parse StackItem structs as arrays Signed-off-by: Alex Vanin --- pkg/morph/client/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/morph/client/util.go b/pkg/morph/client/util.go index 36ca84f3..59f60830 100644 --- a/pkg/morph/client/util.go +++ b/pkg/morph/client/util.go @@ -179,7 +179,7 @@ func ArrayFromStackItem(param stackitem.Item) ([]stackitem.Item, error) { switch param.Type() { case stackitem.AnyT: return nil, nil - case stackitem.ArrayT: + case stackitem.ArrayT, stackitem.StructT: items, ok := param.Value().([]stackitem.Item) if !ok { return nil, errors.Errorf("chain/client: can't convert %T to parameter slice", param.Value())