From d3ac6eba9e64b21b3f05c1a1c4d27066b37d7d13 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 9 Oct 2016 08:35:18 -0700 Subject: [PATCH] script: minor. --- lib/script/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/script/script.js b/lib/script/script.js index 74e16a14..0fbb1505 100644 --- a/lib/script/script.js +++ b/lib/script/script.js @@ -670,13 +670,13 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) { case opcodes.OP_PICK: case opcodes.OP_ROLL: { if (stack.length < 2) - throw new ScriptError('INVALID_STACK_OPERATION', op); + throw new ScriptError('INVALID_STACK_OPERATION', op, ip); num = Script.num(stack.top(-1), flags).toNumber(); stack.pop(); if (num < 0 || num >= stack.length) - throw new ScriptError('INVALID_STACK_OPERATION', op); + throw new ScriptError('INVALID_STACK_OPERATION', op, ip); val = stack.top(-num - 1);