From 7021c7604205fbf4cbae5bf4a8389021b8e2a073 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 12 Feb 2021 16:46:17 +0300 Subject: [PATCH] core: fix native Management's parameters names Affects dumps. --- pkg/core/native/management.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/core/native/management.go b/pkg/core/native/management.go index 8b7e534a1..a2787ac80 100644 --- a/pkg/core/native/management.go +++ b/pkg/core/native/management.go @@ -72,26 +72,26 @@ func newManagement() *Management { m.AddMethod(md, desc) desc = newDescriptor("deploy", smartcontract.ArrayType, - manifest.NewParameter("script", smartcontract.ByteArrayType), + manifest.NewParameter("nefFile", smartcontract.ByteArrayType), manifest.NewParameter("manifest", smartcontract.ByteArrayType)) md = newMethodAndPrice(m.deploy, 0, callflag.WriteStates|callflag.AllowNotify) m.AddMethod(md, desc) desc = newDescriptor("deploy", smartcontract.ArrayType, - manifest.NewParameter("script", smartcontract.ByteArrayType), + manifest.NewParameter("nefFile", smartcontract.ByteArrayType), manifest.NewParameter("manifest", smartcontract.ByteArrayType), manifest.NewParameter("data", smartcontract.AnyType)) md = newMethodAndPrice(m.deployWithData, 0, callflag.WriteStates|callflag.AllowNotify) m.AddMethod(md, desc) desc = newDescriptor("update", smartcontract.VoidType, - manifest.NewParameter("script", smartcontract.ByteArrayType), + manifest.NewParameter("nefFile", smartcontract.ByteArrayType), manifest.NewParameter("manifest", smartcontract.ByteArrayType)) md = newMethodAndPrice(m.update, 0, callflag.WriteStates|callflag.AllowNotify) m.AddMethod(md, desc) desc = newDescriptor("update", smartcontract.VoidType, - manifest.NewParameter("script", smartcontract.ByteArrayType), + manifest.NewParameter("nefFile", smartcontract.ByteArrayType), manifest.NewParameter("manifest", smartcontract.ByteArrayType), manifest.NewParameter("data", smartcontract.AnyType)) md = newMethodAndPrice(m.updateWithData, 0, callflag.WriteStates|callflag.AllowNotify)