Browse Source

Merge pull request #492 from curtislacy/Pubkey-Error

Clarified error message when we encounter an unknown script pubkey
patch-2
Manuel Aráoz 11 years ago
parent
commit
15525efbcc
  1. 2
      lib/TransactionBuilder.js

2
lib/TransactionBuilder.js

@ -201,7 +201,7 @@ TransactionBuilder.prototype._setInputMap = function() {
var scriptType = scriptPubKey.classify();
if (scriptType === Script.TX_UNKNOWN)
throw new Error('unkown output type at:' + i +
throw new Error('Unknown scriptPubKey type at:' + i +
' Type:' + scriptPubKey.getRawOutType());
inputMap.push({

Loading…
Cancel
Save