update to bitcore v0.1.25
...to fix an error where the scriptForAddress function no longer exists.
This commit is contained in:
parent
556f1d4750
commit
b775220209
3 changed files with 3 additions and 3 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue