From 70e0423b7492375a977cc4d9d43722af9bafeb92 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 20 Apr 2023 19:27:33 +0300 Subject: [PATCH] morph: remove dummyInvocationScript from notary preparator It's unused since Notary Actore keeps it empty, see also https://github.com/nspcc-dev/neo-go/pull/2981. Signed-off-by: Anna Shaleva --- pkg/morph/event/notary_preparator.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/morph/event/notary_preparator.go b/pkg/morph/event/notary_preparator.go index 983532cda6a..03041eb31ac 100644 --- a/pkg/morph/event/notary_preparator.go +++ b/pkg/morph/event/notary_preparator.go @@ -63,8 +63,6 @@ type PreparatorPrm struct { type Preparator struct { // contractSysCall contract call in NeoVM contractSysCall []byte - // dummyInvocationScript is invocation script from TX that is not signed. - dummyInvocationScript []byte alphaKeys client.AlphabetKeys @@ -86,13 +84,10 @@ func notaryPreparator(prm PreparatorPrm) NotaryPreparator { contractSysCall := make([]byte, 4) binary.LittleEndian.PutUint32(contractSysCall, interopnames.ToID([]byte(interopnames.SystemContractCall))) - dummyInvocationScript := append([]byte{byte(opcode.PUSHDATA1), 64}, make([]byte, 64)...) - return Preparator{ - contractSysCall: contractSysCall, - dummyInvocationScript: dummyInvocationScript, - alphaKeys: prm.AlphaKeys, - blockCounter: prm.BlockCounter, + contractSysCall: contractSysCall, + alphaKeys: prm.AlphaKeys, + blockCounter: prm.BlockCounter, } }