Skip to content

Commit

Permalink
fix geth script, coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Jan 29, 2025
1 parent bac3113 commit e54c2a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/core/EntryPointSimulations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ contract EntryPointSimulations is EntryPoint, IEntryPointSimulations {

//slightly stricter gas limit than the real EntryPoint
function _getVerificationGasLimit(uint256 verificationGasLimit) internal pure virtual override returns (uint256) {
return verificationGasLimit - 350;
return verificationGasLimit - 300;
}


Expand Down
3 changes: 2 additions & 1 deletion scripts/geth.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
docker run --rm -p 54321:54321 dtr22/geth-7702-23
trap "echo killing docker; docker kill geth-7702-23" EXIT
docker run --name geth-7702-23 --rm -p 8545:8545 -p 54321:54321 dtr22/geth-7702-23 $*
2 changes: 1 addition & 1 deletion test/GethExecutable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const port = 54321
export const gethLauncher = {
name: 'geth',
exec: './scripts/geth.sh',
args: `--http --http.api personal,eth,net,web3,debug --rpc.allow-unprotected-txs --allow-insecure-unlock --dev --http.port=${port}`
args: `--http --http.api personal,eth,net,web3,debug --rpc.allow-unprotected-txs --allow-insecure-unlock --dev --http.addr 0.0.0.0 --http.port=${port}`
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down
4 changes: 4 additions & 0 deletions test/entrypoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ describe('EntryPoint', function () {
})

describe('test with geth', () => {
if (process.env.COVERAGE != null) {
return
}

let geth: GethExecutable
let prov: JsonRpcProvider
let delegate: TestEip7702DelegateAccount
Expand Down

0 comments on commit e54c2a7

Please sign in to comment.