From aded938ab69fe2af6a9af69e550bcb9cf873295d Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 12 Jun 2014 20:58:56 +1000 Subject: [PATCH] Script: check hex not template result --- test/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/script.js b/test/script.js index a5b0ce7..52e12c0 100644 --- a/test/script.js +++ b/test/script.js @@ -162,13 +162,15 @@ describe('Script', function() { describe('fromChunks', function() { it('should match expected behaviour', function() { var hash = new Buffer(32) + hash.fill(0) + var script = Script.fromChunks([ opcodes.OP_HASH160, hash, opcodes.OP_EQUAL ]) - assert.deepEqual(script, Script.createP2SHScriptPubKey(hash)) + assert.equal(script.toHex(), 'a920000000000000000000000000000000000000000000000000000000000000000087') }) })