mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-09 11:19:06 +00:00
stackitem: extend Make() with []string
Allow []string to be converted to stackitem.Item. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
b66cea5ccc
commit
55fa12355e
1 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,12 @@ func Make(v any) Item {
|
||||||
a = append(a, Make(i))
|
a = append(a, Make(i))
|
||||||
}
|
}
|
||||||
return Make(a)
|
return Make(a)
|
||||||
|
case []string:
|
||||||
|
var a []Item
|
||||||
|
for _, i := range val {
|
||||||
|
a = append(a, Make(i))
|
||||||
|
}
|
||||||
|
return Make(a)
|
||||||
case []any:
|
case []any:
|
||||||
res := make([]Item, len(val))
|
res := make([]Item, len(val))
|
||||||
for i := range val {
|
for i := range val {
|
||||||
|
|
Loading…
Reference in a new issue