From e44e6bf3344b560d6d81a969bc6acf9a13ef6609 Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Tue, 20 Feb 2024 17:42:20 +0200 Subject: [PATCH] unused logs --- deploy/1_deploy_entrypoint.ts | 1 - gascalc/GasChecker.ts | 3 +-- hardhat.config.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/1_deploy_entrypoint.ts b/deploy/1_deploy_entrypoint.ts index f0b922a5f..f714da04d 100644 --- a/deploy/1_deploy_entrypoint.ts +++ b/deploy/1_deploy_entrypoint.ts @@ -6,7 +6,6 @@ const deployEntryPoint: DeployFunction = async function (hre: HardhatRuntimeEnvi const provider = ethers.provider const from = await provider.getSigner().getAddress() - console.log('from=', from, 'bal=', await provider.getBalance(from)) const ret = await hre.deployments.deploy( 'EntryPoint', { from, diff --git a/gascalc/GasChecker.ts b/gascalc/GasChecker.ts index 8cdb9e938..45a21ff4e 100644 --- a/gascalc/GasChecker.ts +++ b/gascalc/GasChecker.ts @@ -1,6 +1,6 @@ // calculate gas usage of different bundle sizes import '../test/aa.init' -import { defaultAbiCoder, formatEther, hexConcat, parseEther } from 'ethers/lib/utils' +import { defaultAbiCoder, hexConcat, parseEther } from 'ethers/lib/utils' import { AddressZero, checkForGeth, @@ -321,7 +321,6 @@ export class GasCheckCollector { const bal = await getBalance(ethersSigner.getAddress()) if (bal.gt(parseEther('100000000'))) { - console.log('bal=', formatEther(bal)) console.log('DONT use geth miner.. use account 2 instead') await checkForGeth() ethersSigner = ethers.provider.getSigner(2) diff --git a/hardhat.config.ts b/hardhat.config.ts index 7cba2beb9..4c499c2e2 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -14,7 +14,7 @@ process.env.SALT = process.env.SALT ?? SALT task('deploy', 'Deploy contracts') .addFlag('simpleAccountFactory', 'deploy sample factory (by default, enabled only on localhost)') -const mnemonicFileName = process.env.MNEMONIC_FILE +const mnemonicFileName = process.env.MNEMONIC_FILE! let mnemonic = 'test '.repeat(11) + 'junk' if (fs.existsSync(mnemonicFileName)) { mnemonic = fs.readFileSync(mnemonicFileName, 'ascii') }