core: fix native NameService methods return types
Affects dumps.
This commit is contained in:
parent
49b1b4bb27
commit
e1384cb795
1 changed files with 2 additions and 2 deletions
|
@ -95,11 +95,11 @@ func newNonFungible(name string, id int32, symbol string, decimals byte) *nonfun
|
||||||
md = newMethodAndPrice(n.Properties, 1000000, callflag.ReadStates)
|
md = newMethodAndPrice(n.Properties, 1000000, callflag.ReadStates)
|
||||||
n.AddMethod(md, desc)
|
n.AddMethod(md, desc)
|
||||||
|
|
||||||
desc = newDescriptor("tokens", smartcontract.InteropInterfaceType)
|
desc = newDescriptor("tokens", smartcontract.AnyType)
|
||||||
md = newMethodAndPrice(n.tokens, 1000000, callflag.ReadStates)
|
md = newMethodAndPrice(n.tokens, 1000000, callflag.ReadStates)
|
||||||
n.AddMethod(md, desc)
|
n.AddMethod(md, desc)
|
||||||
|
|
||||||
desc = newDescriptor("tokensOf", smartcontract.InteropInterfaceType,
|
desc = newDescriptor("tokensOf", smartcontract.AnyType,
|
||||||
manifest.NewParameter("owner", smartcontract.Hash160Type))
|
manifest.NewParameter("owner", smartcontract.Hash160Type))
|
||||||
md = newMethodAndPrice(n.tokensOf, 1000000, callflag.ReadStates)
|
md = newMethodAndPrice(n.tokensOf, 1000000, callflag.ReadStates)
|
||||||
n.AddMethod(md, desc)
|
n.AddMethod(md, desc)
|
||||||
|
|
Loading…
Reference in a new issue