From 1c9b89f4f320c633f04f2e936822103162f572e9 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 18 Feb 2014 17:58:16 -0300 Subject: [PATCH] reverted some unwanted changes --- ScriptInterpreter.js | 4 ++-- Transaction.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ScriptInterpreter.js b/ScriptInterpreter.js index 2050ccf..35ec400 100644 --- a/ScriptInterpreter.js +++ b/ScriptInterpreter.js @@ -299,8 +299,8 @@ function spec(b) { case OP_CAT: // (x1 x2 -- out) - v1 = this.stackTop(2); - v2 = this.stackTop(1); + var v1 = this.stackTop(2); + var v2 = this.stackTop(1); this.stackPop(); this.stackPop(); this.stack.push(Buffer.concat([v1, v2])); diff --git a/Transaction.js b/Transaction.js index f0bcd1f..d362039 100644 --- a/Transaction.js +++ b/Transaction.js @@ -88,7 +88,7 @@ function spec(b) { TransactionOut.prototype.serialize = function serialize() { var slen = util.varIntBuf(this.s.length); - return Buffer.concat([his.v, slen, this.s]); + return Buffer.concat([this.v, slen, this.s]); }; function Transaction(data) { @@ -153,7 +153,7 @@ function spec(b) { bufs.push(txout.serialize()); }); - buf = new Buffer(4); + var buf = new Buffer(4); buf.writeUInt32LE(this.lock_time, 0); bufs.push(buf);