add inputs as strings to force fail
This commit is contained in:
parent
b9538e6486
commit
93b3e1db86
|
@ -106,7 +106,7 @@ helpers.createUtxos = function(server, wallet, amounts, cb) {
|
|||
return {
|
||||
txid: helpers.randomTXID(),
|
||||
vout: Math.floor((Math.random() * 10) + 1),
|
||||
satoshis: helpers.toSatoshi(amount),
|
||||
satoshis: helpers.toSatoshi(amount).toString(),
|
||||
scriptPubKey: addresses[i].getScriptPubKey(wallet.m).toBuffer().toString('hex'),
|
||||
address: addresses[i++].address,
|
||||
};
|
||||
|
@ -664,6 +664,7 @@ describe('Copay server', function() {
|
|||
|
||||
it('should create a tx', function(done) {
|
||||
helpers.createUtxos(server, wallet, [100, 200], function(utxos) {
|
||||
|
||||
helpers.stubBlockExplorer(server, utxos);
|
||||
var txOpts = helpers.createProposalOpts('18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', 80, 'some message', TestData.copayers[0].privKey);
|
||||
server.createTx(txOpts, function(err, tx) {
|
||||
|
|
Loading…
Reference in New Issue