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:
parent
eb4994b05e
commit
f312c94eeb
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user