add inputs as strings to force fail

This commit is contained in:
Matias Alejo Garcia 2015-02-18 15:51:41 -03:00
parent b9538e6486
commit 93b3e1db86
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,7 @@ helpers.createUtxos = function(server, wallet, amounts, cb) {
return { return {
txid: helpers.randomTXID(), txid: helpers.randomTXID(),
vout: Math.floor((Math.random() * 10) + 1), 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'), scriptPubKey: addresses[i].getScriptPubKey(wallet.m).toBuffer().toString('hex'),
address: addresses[i++].address, address: addresses[i++].address,
}; };
@ -664,6 +664,7 @@ describe('Copay server', function() {
it('should create a tx', function(done) { it('should create a tx', function(done) {
helpers.createUtxos(server, wallet, [100, 200], function(utxos) { helpers.createUtxos(server, wallet, [100, 200], function(utxos) {
helpers.stubBlockExplorer(server, utxos); helpers.stubBlockExplorer(server, utxos);
var txOpts = helpers.createProposalOpts('18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', 80, 'some message', TestData.copayers[0].privKey); var txOpts = helpers.createProposalOpts('18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', 80, 'some message', TestData.copayers[0].privKey);
server.createTx(txOpts, function(err, tx) { server.createTx(txOpts, function(err, tx) {