Fix missed network parameter.

This commit is contained in:
Andy Phillipson 2017-01-05 17:44:23 -05:00
commit 099a20c3a3

View file

@ -111,7 +111,7 @@ angular.module('copayApp.services').factory('bitpayService', function($log, $htt
};
root.post = function(endpoint, json, successCallback, errorCallback) {
appIdentityService.getIdentity(NETWORK, function(err, appIdentity) {
appIdentityService.getIdentity(root.getEnvironment().network, function(err, appIdentity) {
if (err) return errorCallback(err);
$http(_post(endpoint, json, appIdentity)).then(function(data) {
successCallback(data);