bitcore-lib
bitcore-lib copied to clipboard
One call to addNetwork causes test to fail.
In lib/networks.js, I add
addNetwork({
name: 'foobar-testnet',
privatekey: 0xef
});
This causes:
AssertionError: expected 'n4McBrSkw42eYGX5YMACGpkGUJKL3jVSbo' to equal '1PqetoMn82bPmA3TpnBpSuXwcJidBGxbSX'
at test/transaction/input/publickey.js line 21:
utxo.address.should.equal(address.toString());
This seems surprising to me. Is this expected? Seems to be some state leaking out from the call to addNetwork.