fix conflics

This commit is contained in:
Matias Alejo Garcia 2014-05-01 09:41:18 -03:00
commit 1e8895f4b8
10 changed files with 144 additions and 64 deletions

View file

@ -31,13 +31,15 @@ angular.module('copay.setup').controller('SetupController',
updateRCSelect(tc);
});
$scope.create = function(totalCopayers, requiredCopayers, walletName) {
$scope.create = function(totalCopayers, requiredCopayers, walletName, myNickname) {
$scope.loading = true;
var opts = {
requiredCopayers: requiredCopayers,
totalCopayers: totalCopayers,
name: walletName,
nickname: myNickname,
};
console.log('[setup.js.31:opts:]',opts); //TODO
var w = walletFactory.create(opts);
controllerUtils.startNetwork(w);
};

View file

@ -18,15 +18,14 @@ angular.module('copay.signin').controller('SigninController',
controllerUtils.startNetwork(w);
};
$scope.join = function(secret) {
$scope.join = function(secret, nickname ) {
$scope.loading = true;
walletFactory.network.on('badSecret', function() {
});
walletFactory.joinCreateSession(secret, function(err,w) {
walletFactory.joinCreateSession(secret, nickname, function(err,w) {
$scope.loading = false;
console.log('[signin.js.27:err:]',err,w); //TODO
if (err || !w) {
if (err === 'joinError')

View file

@ -22,7 +22,7 @@ angular.module('copay.transactions').controller('TransactionsController',
tx.outs.forEach(function(o) {
var addr = bitcore.Address.fromScriptPubKey(o.getScript(), config.networkName)[0].toString();
if (!w.addressIsOwn(addr)) {
if (!w.addressIsOwn(addr, true)) {
outs.push({
address: addr,
value: bitcore.util.valueToBigInt(o.getValue())/bitcore.util.COIN,