diff --git a/pkg/vm/vm_ops_stackmani.go b/pkg/vm/vm_ops_stackmani.go index c510eb7db..366beb15b 100644 --- a/pkg/vm/vm_ops_stackmani.go +++ b/pkg/vm/vm_ops_stackmani.go @@ -7,13 +7,13 @@ import ( // Stack Manipulation Opcodes // PushNBytes will Read N Bytes from the script and push it onto the stack -func PushNBytes(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation) error { +func PushNBytes(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation) (Vmstate, error) { val, err := ctx.ReadBytes(int(op)) if err != nil { - return err + return FAULT, err } ba := stack.NewByteArray(val) ctx.Estack.Push(ba) - return nil + return NONE, nil }