update to bitcore v0.1.25

...to fix an error where the scriptForAddress function no longer exists.
This commit is contained in:
Ryan X. Charles 2014-07-07 10:35:06 -07:00
commit b775220209
3 changed files with 3 additions and 3 deletions

View file

@ -595,7 +595,7 @@ describe('Wallet model', function() {
}];
var addr = w.generateAddress().toString();
utxo[0].address = addr;
utxo[0].scriptPubKey = TransactionBuilder.scriptForAddress(addr).serialize().toString('hex');
utxo[0].scriptPubKey = (new bitcore.Address(addr)).getScriptPubKey().serialize().toString('hex');
return utxo;
};
var toAddress = 'mjfAe7YrzFujFf8ub5aUrCaN5GfSABdqjh';