From 59edfbc5e9862d58ebda3429c9890c3497a1d433 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 +- reports/gas-checker.txt | 30 +++++++++++++++--------------- 4 files changed, 17 insertions(+), 19 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') } diff --git a/reports/gas-checker.txt b/reports/gas-checker.txt index 16e5f4349..692322bf7 100644 --- a/reports/gas-checker.txt +++ b/reports/gas-checker.txt @@ -16,40 +16,40 @@ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ simple - diff from previous │ 2 │ │ 42192 │ 13213 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple │ 10 │ 459909 │ │ ║ +║ simple │ 10 │ 459921 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple - diff from previous │ 11 │ │ 42295 │ 13316 ║ +║ simple - diff from previous │ 11 │ │ 42223 │ 13244 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ simple paymaster │ 1 │ 86113 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster with diff │ 2 │ │ 41072 │ 12093 ║ +║ simple paymaster with diff │ 2 │ │ 41024 │ 12045 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster │ 10 │ 455732 │ │ ║ +║ simple paymaster │ 10 │ 455444 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster with diff │ 11 │ │ 41040 │ 12061 ║ +║ simple paymaster with diff │ 11 │ │ 41088 │ 12109 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx 5k │ 1 │ 181038 │ │ ║ +║ big tx 5k │ 1 │ 181026 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx - diff from previous │ 2 │ │ 142678 │ 17454 ║ +║ big tx - diff from previous │ 2 │ │ 142714 │ 17490 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx 5k │ 10 │ 1465467 │ │ ║ +║ big tx 5k │ 10 │ 1465443 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ big tx - diff from previous │ 11 │ │ 142686 │ 17462 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp │ 1 │ 87736 │ │ ║ +║ paymaster+postOp │ 1 │ 87712 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp with diff │ 2 │ │ 42659 │ 13680 ║ +║ paymaster+postOp with diff │ 2 │ │ 42671 │ 13692 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp │ 10 │ 471826 │ │ ║ +║ paymaster+postOp │ 10 │ 471754 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp with diff │ 11 │ │ 42692 │ 13713 ║ +║ paymaster+postOp with diff │ 11 │ │ 42728 │ 13749 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ token paymaster │ 1 │ 128765 │ │ ║ +║ token paymaster │ 1 │ 128777 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ token paymaster with diff │ 2 │ │ 66398 │ 37419 ║ +║ token paymaster with diff │ 2 │ │ 66386 │ 37407 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ token paymaster │ 10 │ 726504 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ token paymaster with diff │ 11 │ │ 66454 │ 37475 ║ +║ token paymaster with diff │ 11 │ │ 66394 │ 37415 ║ ╚════════════════════════════════╧═══════╧═══════════════╧════════════════╧═════════════════════╝