From bbd3689c5494141f8a86bb0b0eb4d0052345b9db Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 10 Sep 2015 14:53:21 -0300 Subject: [PATCH] v2 endpoints for create & join --- lib/expressapp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/expressapp.js b/lib/expressapp.js index 20213d4..2c35d8c 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -144,7 +144,6 @@ ExpressApp.prototype.start = function(opts, cb) { router.post('/v2/wallets/', function(req, res) { var server = getServer(req, res); - req.body.supportBIP44AndP2PKH = true; server.createWallet(req.body, function(err, walletId) { if (err) return returnError(err, res, req); res.json({ @@ -165,6 +164,7 @@ ExpressApp.prototype.start = function(opts, cb) { // DEPRECATED router.post('/v1/wallets/:id/copayers/', function(req, res) { req.body.walletId = req.params['id']; + req.body.supportBIP44AndP2PKH = false; var server = getServer(req, res); server.joinWallet(req.body, function(err, result) { if (err) return returnError(err, res, req); @@ -175,7 +175,6 @@ ExpressApp.prototype.start = function(opts, cb) { router.post('/v2/wallets/:id/copayers/', function(req, res) { req.body.walletId = req.params['id']; - req.body.supportBIP44AndP2PKH = true; var server = getServer(req, res); server.joinWallet(req.body, function(err, result) { if (err) return returnError(err, res, req);