mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +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))
|
||||
}
|
||||
return Make(a)
|
||||
case []string:
|
||||
var a []Item
|
||||
for _, i := range val {
|
||||
a = append(a, Make(i))
|
||||
}
|
||||
return Make(a)
|
||||
case []any:
|
||||
res := make([]Item, len(val))
|
||||
for i := range val {
|
||||
|
|
Loading…
Reference in a new issue