rpcbinding: fix wrappers for Any type, fix #2898
This commit is contained in:
parent
1bdd62702c
commit
b1e7f40226
4 changed files with 16 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue