From 94e84f0364f1d6aeefbfddfe091dedad5ae4a2f0 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 11 Aug 2022 16:08:26 +0300 Subject: [PATCH] core: fix native Management's hasMethod signature Affects states, see https://github.com/neo-project/neo/blob/28ab45a6eca51bacadfa2b84c27f445b40e50a24/src/Neo/SmartContract/Native/ContractManagement.cs#L155. --- pkg/core/native/management.go | 2 +- pkg/services/rpcsrv/server_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/native/management.go b/pkg/core/native/management.go index 888482095..26bd855f8 100644 --- a/pkg/core/native/management.go +++ b/pkg/core/native/management.go @@ -141,7 +141,7 @@ func newManagement() *Management { md = newMethodAndPrice(m.setMinimumDeploymentFee, 1<<15, callflag.States) m.AddMethod(md, desc) - desc = newDescriptor("hasMethod", smartcontract.IntegerType, + desc = newDescriptor("hasMethod", smartcontract.BoolType, manifest.NewParameter("hash", smartcontract.Hash160Type), manifest.NewParameter("method", smartcontract.StringType), manifest.NewParameter("pcount", smartcontract.IntegerType)) diff --git a/pkg/services/rpcsrv/server_test.go b/pkg/services/rpcsrv/server_test.go index 011ca030b..d524e1d5b 100644 --- a/pkg/services/rpcsrv/server_test.go +++ b/pkg/services/rpcsrv/server_test.go @@ -78,7 +78,7 @@ const ( nfsoContractHash = "0e15ca0df00669a2cd5dcb03bfd3e2b3849c2969" nfsoToken1ID = "7e244ffd6aa85fb1579d2ed22e9b761ab62e3486" invokescriptContractAVM = "VwIADBQBDAMOBQYMDQIODw0DDgcJAAAAAErZMCQE2zBwaEH4J+yMqiYEEUAMFA0PAwIJAAIBAwcDBAUCAQAOBgwJStkwJATbMHFpQfgn7IyqJgQSQBNA" - block20StateRootLE = "c0abd1e544338e2da6bb8ea7c1915fc44ff4226150b053ca8ff8ca75d50faf49" + block20StateRootLE = "f1380226a217b5e35ea968d42c50e20b9af7ab83b91416c8fb85536c61004332" storageContractHash = "ebc0c16a76c808cd4dde6bcc063f09e45e331ec7" )