Skip to content

Commit

Permalink
morph: remove dummyInvocationScript from notary preparator
Browse files Browse the repository at this point in the history
It's unused since Notary Actore keeps it empty, see also
nspcc-dev/neo-go#2981.

Signed-off-by: Anna Shaleva <anna@nspcc.ru>
  • Loading branch information
AnnaShaleva committed Apr 20, 2023
1 parent bdc463a commit 70e0423
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pkg/morph/event/notary_preparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
}
}

Expand Down

0 comments on commit 70e0423

Please sign in to comment.