Skip to content

Commit

Permalink
unused logs
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Feb 20, 2024
1 parent a89c031 commit 59edfbc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
1 change: 0 additions & 1 deletion deploy/1_deploy_entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions gascalc/GasChecker.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') }

Expand Down
30 changes: 15 additions & 15 deletions reports/gas-checker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple - diff from previous │ 2 │ │ 42192 │ 13213 ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple │ 10 │ 459909 │ │ ║
║ simple │ 10 │ 459921 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple - diff from previous │ 11 │ │ 4229513316
║ simple - diff from previous │ 11 │ │ 4222313244
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster │ 1 │ 86113 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster with diff │ 2 │ │ 4107212093
║ simple paymaster with diff │ 2 │ │ 4102412045
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster │ 10 │ 455732 │ │ ║
║ simple paymaster │ 10 │ 455444 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster with diff │ 11 │ │ 4104012061
║ simple paymaster with diff │ 11 │ │ 4108812109
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx 5k │ 1 │ 181038 │ │ ║
║ big tx 5k │ 1 │ 181026 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx - diff from previous │ 2 │ │ 14267817454
║ big tx - diff from previous │ 2 │ │ 14271417490
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ 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 │ │ 4265913680
║ paymaster+postOp with diff │ 2 │ │ 4267113692
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp │ 10 │ 471826 │ │ ║
║ paymaster+postOp │ 10 │ 471754 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp with diff │ 11 │ │ 4269213713
║ paymaster+postOp with diff │ 11 │ │ 4272813749
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster │ 1 │ 128765 │ │ ║
║ token paymaster │ 1 │ 128777 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster with diff │ 2 │ │ 6639837419
║ token paymaster with diff │ 2 │ │ 6638637407
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster │ 10 │ 726504 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster with diff │ 11 │ │ 6645437475
║ token paymaster with diff │ 11 │ │ 6639437415
╚════════════════════════════════╧═══════╧═══════════════╧════════════════╧═════════════════════╝

0 comments on commit 59edfbc

Please sign in to comment.