finish m_n script

This commit is contained in:
Manuel Araoz 2014-05-21 16:10:39 -03:00
commit 89cdfb3f7c
No known key found for this signature in database
GPG key ID: 64F3727BFE0B3196
3 changed files with 20 additions and 20 deletions

View file

@ -96,7 +96,7 @@ angular.module('copay.send').controller('SendController',
//alert(JSON.stringify(qrcode.process(context)));
qrcode.decode();
} catch (e) {
alert(e);
console.log('error decoding QR: '+e);
}
}, 1500);
};

View file

@ -3,6 +3,7 @@
var imports = require('soop').imports();
var bitcore = require('bitcore');
var bignum = bitcore.Bignum;
var coinUtil = bitcore.util;
var buffertools = bitcore.buffertools;
var Builder = bitcore.TransactionBuilder;
@ -571,7 +572,7 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, utxos, opts) {
var priv = this.privateKey;
opts = opts || {};
var amountSat = bitcore.bignum(amountSatStr);
var amountSat = bignum(amountSatStr);
if (!pkr.isComplete()) {
throw new Error('publicKeyRing is not complete');