1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00

if there is anything else

This commit is contained in:
Cevo 2015-09-04 11:31:53 +02:00
parent eb4994b05e
commit f312c94eeb

View File

@ -24,13 +24,15 @@ class ContractListActions {
} }
makeContractPublic(contract){ makeContractPublic(contract){
contract.public=true; contract.public = true;
return Q.Promise((resolve, reject) => { return Q.Promise((resolve, reject) => {
OwnershipFetcher.makeContractPublic(contract) OwnershipFetcher.makeContractPublic(contract)
.then((res) => { .then((res) => {
console.log('Here is the result... ');
resolve(res); resolve(res);
}) })
.catch((err)=> { .catch((err)=> {
console.log('Here we have an error');
console.logGlobal(err); console.logGlobal(err);
reject(err); reject(err);
}); });