Remove debug logs
The classes from the library should be less noisy
This commit is contained in:
parent
d5e68e1639
commit
8b0df655e8
@ -49,7 +49,6 @@ class Contributor extends Base {
|
|||||||
contributorAttr.isCore,
|
contributorAttr.isCore,
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log('[kredits] addContributor', ...contributor);
|
|
||||||
return this.functions.addContributor(...contributor);
|
return this.functions.addContributor(...contributor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,6 @@ class Operator extends Base {
|
|||||||
ipfsHashAttr.hashSize,
|
ipfsHashAttr.hashSize,
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log('[kredits] addProposal', ...proposal);
|
|
||||||
return this.functions.addProposal(...proposal);
|
return this.functions.addProposal(...proposal);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,6 @@ class Kredits {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
let abi = abis['Registry'];
|
let abi = abis['Registry'];
|
||||||
console.log('Initialize registry contract:', address, abi, provider);
|
|
||||||
return new ethers.Contract(address, abi, provider);
|
return new ethers.Contract(address, abi, provider);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,8 +110,6 @@ class Kredits {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let contractName = capitalize(name);
|
let contractName = capitalize(name);
|
||||||
console.log(contractName);
|
|
||||||
console.log(contracts);
|
|
||||||
let address = this.addresses[contractName];
|
let address = this.addresses[contractName];
|
||||||
if (!address || !abis[contractName]) {
|
if (!address || !abis[contractName]) {
|
||||||
throw new Error(`Address or ABI not found for ${contractName}`);
|
throw new Error(`Address or ABI not found for ${contractName}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user