forked from TrueCloudLab/frostfs-node
[#15] Parse StackItem structs as arrays
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
8f5ea75eb6
commit
c299de5de9
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue