From 31add423a8ee1da0d22ce93f2f45033e064ee61e Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 3 Dec 2019 17:54:47 +0300 Subject: [PATCH] core: replace open-coded PUSHBYTES64 with the one from opcode --- pkg/core/helper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/helper_test.go b/pkg/core/helper_test.go index c9aa54416..43b8d96ab 100644 --- a/pkg/core/helper_test.go +++ b/pkg/core/helper_test.go @@ -15,6 +15,7 @@ import ( "github.com/CityOfZion/neo-go/pkg/io" "github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/CityOfZion/neo-go/pkg/util" + "github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/stretchr/testify/require" ) @@ -84,8 +85,7 @@ func newBlock(index uint32, txs ...*transaction.Transaction) *Block { if err != nil || len(sig) != 64 { panic(err) } - // 0x40 is PUSHBYTES64 - invScript = append(invScript, 0x40) + invScript = append(invScript, byte(opcode.PUSHBYTES64)) invScript = append(invScript, sig...) } b.Script.InvocationScript = invScript