diff --git a/pkg/vm/emit/emit.go b/pkg/vm/emit/emit.go index e875f15e1..0d3fbd38a 100644 --- a/pkg/vm/emit/emit.go +++ b/pkg/vm/emit/emit.go @@ -12,6 +12,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" ) // Instruction emits a VM Instruction with data to the given buffer. @@ -32,7 +33,7 @@ func Bool(w *io.BinWriter, ok bool) { return } Opcode(w, opcode.PUSHF) - Instruction(w, opcode.CONVERT, []byte{0x20}) // 0x20 for Boolean type + Instruction(w, opcode.CONVERT, []byte{byte(stackitem.BooleanT)}) } func padRight(s int, buf []byte) []byte {