From e1384cb795110c353104aa892680f6860a3f513b Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 12 Feb 2021 16:59:27 +0300 Subject: [PATCH] core: fix native NameService methods return types Affects dumps. --- pkg/core/native/nonfungible.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/native/nonfungible.go b/pkg/core/native/nonfungible.go index afbfd7292..0aa2239ba 100644 --- a/pkg/core/native/nonfungible.go +++ b/pkg/core/native/nonfungible.go @@ -95,11 +95,11 @@ func newNonFungible(name string, id int32, symbol string, decimals byte) *nonfun md = newMethodAndPrice(n.Properties, 1000000, callflag.ReadStates) n.AddMethod(md, desc) - desc = newDescriptor("tokens", smartcontract.InteropInterfaceType) + desc = newDescriptor("tokens", smartcontract.AnyType) md = newMethodAndPrice(n.tokens, 1000000, callflag.ReadStates) n.AddMethod(md, desc) - desc = newDescriptor("tokensOf", smartcontract.InteropInterfaceType, + desc = newDescriptor("tokensOf", smartcontract.AnyType, manifest.NewParameter("owner", smartcontract.Hash160Type)) md = newMethodAndPrice(n.tokensOf, 1000000, callflag.ReadStates) n.AddMethod(md, desc)