fix a browser test 2

This commit is contained in:
Manuel Araoz 2014-12-04 15:40:27 -03:00
parent 6c5198b743
commit f231f8a054
1 changed files with 2 additions and 2 deletions

View File

@ -467,9 +467,9 @@ describe('Script', function() {
});
describe('#toScriptHashOut', function() {
it('should create script from another script', function() {
var s = new Script('OP_DUP OP_HASH160 06c06f6d931d7bfba2b5bd5ad0d19a8f257af3e3 OP_EQUALVERIFY OP_CHECKSIG');
var s = new Script('OP_DUP OP_HASH160 20 0x06c06f6d931d7bfba2b5bd5ad0d19a8f257af3e3 OP_EQUALVERIFY OP_CHECKSIG');
var sho = s.toScriptHashOut();
sho.toString().should.equal('OP_HASH160 20 0xb96d20131e15d948aa9196e477e9611d8e43c8f0 OP_EQUAL');
sho.toString().should.equal('OP_HASH160 20 0x45ea3f9133e7b1cef30ba606f8433f993e41e159 OP_EQUAL');
sho.isScriptHashOut().should.equal(true);
});
});