Skip to content

Commit 39c9b63

Browse files
committed
fix
1 parent 2920456 commit 39c9b63

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

contract_manager/scripts/common.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface BaseDeployConfig {
2222
// Deploys a contract if it was not deployed before.
2323
// It will check for the past deployments in file `cacheFile` against a key
2424
// If `cacheKey` is provided it will be used as the key, else it will use
25-
// a key - `${chain.getId()}-${artifactName}`
25+
// a - `${chain.getId()}-${artifactName}`
2626
export async function deployIfNotCached(
2727
cacheFile: string,
2828
chain: EvmChain,
@@ -31,17 +31,16 @@ export async function deployIfNotCached(
3131
deployArgs: any[], // eslint-disable-line @typescript-eslint/no-explicit-any
3232
cacheKey?: string,
3333
): Promise<string> {
34-
console.log("artifactName: ", artifactName);
3534
const runIfNotCached = makeCacheFunction(cacheFile);
3635
const key = cacheKey ?? `${chain.getId()}-${artifactName}`;
3736
return runIfNotCached(key, async () => {
3837
const artifact = JSON.parse(
39-
readFileSync(join(config.jsonOutputDir, `${artifactName}.sol/${artifactName}.json`), "utf8"),
38+
readFileSync(
39+
join(config.jsonOutputDir, `${artifactName}.sol/${artifactName}.json`),
40+
"utf8",
41+
),
4042
);
4143

42-
43-
console.log("artifact: ", artifact);
44-
4544
// Handle bytecode which can be either a string or an object with an 'object' property
4645
let bytecode = artifact["bytecode"];
4746
if (

contract_manager/src/chains.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,6 @@ export class EvmChain extends Chain {
563563
web3.eth.accounts.wallet.add(signer);
564564
const contract = new web3.eth.Contract(abi);
565565
const deployTx = contract.deploy({ data: bytecode, arguments: deployArgs });
566-
console.log("deployTx", deployTx);
567-
console.log("bytecode", bytecode);
568566
const gas = (await deployTx.estimateGas()) * gasMultiplier;
569567
const gasPrice = Number(await this.getGasPrice()) * gasPriceMultiplier;
570568
const deployerBalance = await web3.eth.getBalance(signer.address);

0 commit comments

Comments
 (0)