From bc716646dc29cac5d093fa0ebf3495c585b5e4a9 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 6 Aug 2014 12:27:07 -0700 Subject: [PATCH] paypro: figure out why paypro tests are hanging in the browser. --- test/test.PayPro.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test.PayPro.js b/test/test.PayPro.js index b157870d7..e2604fc4a 100644 --- a/test/test.PayPro.js +++ b/test/test.PayPro.js @@ -255,8 +255,9 @@ describe('PayPro (in Wallet) model', function() { v[7] = (amount.low >> 0) & 0xff; var s = script.buffer.slice(script.offset, script.limit); - var network = network === 'main' ? 'livenet' : 'testnet'; - var addr = bitcore.Address.fromScriptPubKey(new bitcore.Script(s), network); + var net = network === 'main' ? 'livenet' : 'testnet'; + // XXX browser test chokes here on new bitcore.Script: + var addr = bitcore.Address.fromScriptPubKey(new bitcore.Script(s), net); outs.push({ address: addr[0].toString(), @@ -491,8 +492,8 @@ describe('PayPro (in Wallet) model', function() { v[7] = (amount.low >> 0) & 0xff; var s = script.buffer.slice(script.offset, script.limit); - var network = network === 'main' ? 'livenet' : 'testnet'; - var addr = bitcore.Address.fromScriptPubKey(new bitcore.Script(s), network); + var net = network === 'main' ? 'livenet' : 'testnet'; + var addr = bitcore.Address.fromScriptPubKey(new bitcore.Script(s), net); outs.push({ address: addr[0].toString(),