bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

One call to addNetwork causes test to fail.

Open skyl opened this issue 8 years ago • 0 comments

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.

skyl avatar Mar 26 '17 18:03 skyl