From 1472c271e6596faaf597a35fdd7cd520ad44fef0 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 2 Jun 2022 08:00:37 +0300 Subject: [PATCH] core: fix native NEO's `getCandidateVote` signature This commit fixes T5 statediff at block #0. Management's storage item differs between neo-go and C# nodes, the reason in native NEO contract state. The parameter should have `pubKey` name, unlike the other `pubkey` arguments in this contract. --- pkg/core/native/native_neo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/native/native_neo.go b/pkg/core/native/native_neo.go index cde774216..7020accc1 100644 --- a/pkg/core/native/native_neo.go +++ b/pkg/core/native/native_neo.go @@ -205,7 +205,7 @@ func newNEO(cfg config.ProtocolConfiguration) *NEO { n.AddMethod(md, desc) desc = newDescriptor("getCandidateVote", smartcontract.IntegerType, - manifest.NewParameter("pubkey", smartcontract.PublicKeyType)) + manifest.NewParameter("pubKey", smartcontract.PublicKeyType)) md = newMethodAndPrice(n.getCandidateVoteCall, 1<<15, callflag.ReadStates) n.AddMethod(md, desc)