rpcbinding: fix wrappers for Any type, fix #2898

This commit is contained in:
Roman Khimov 2023-02-18 00:06:45 +03:00
parent 1bdd62702c
commit b1e7f40226
4 changed files with 16 additions and 2 deletions

View file

@ -565,7 +565,7 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st
ctr.HasIterator = true
} else {
imports["github.com/nspcc-dev/neo-go/pkg/vm/stackitem"] = struct{}{}
ctr.SafeMethods[i].ReturnType = "stackitem.Item"
ctr.SafeMethods[i].ReturnType = "interface{}"
ctr.SafeMethods[i].Unwrapper = "Item"
}
case "bool":