From 28ced63af536f84649df69294162ecae14c15bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90or=C4=91e=20Mijovi=C4=87?= Date: Fri, 3 Oct 2025 22:58:46 +0200 Subject: [PATCH 1/3] Set unused gas penalty to 100% to fit with charging gas limit on monad. --- contracts/core/EntryPoint.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/core/EntryPoint.sol b/contracts/core/EntryPoint.sol index 44501524d..4bc9e1db0 100644 --- a/contracts/core/EntryPoint.sol +++ b/contracts/core/EntryPoint.sol @@ -43,7 +43,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuard, bytes32 private constant INNER_REVERT_LOW_PREFUND = hex"deadaa51"; uint256 private constant REVERT_REASON_MAX_LEN = 2048; - uint256 private constant PENALTY_PERCENT = 10; + uint256 private constant PENALTY_PERCENT = 100; /// @inheritdoc IERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { From 3d3ec276301a86c903f8177dd246291a0a84c923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90or=C4=91e=20Mijovi=C4=87?= Date: Sat, 4 Oct 2025 21:27:37 +0200 Subject: [PATCH 2/3] Fix tests. --- test/entrypoint.test.ts | 2 +- test/samples/TokenPaymaster.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/entrypoint.test.ts b/test/entrypoint.test.ts index 4a934c447..9824d8f52 100644 --- a/test/entrypoint.test.ts +++ b/test/entrypoint.test.ts @@ -691,7 +691,7 @@ describe('EntryPoint', function () { // we cannot access internal transaction state, so we have to rely on two separate transactions for estimation // assuming 10% penalty is charged - const expectedGasPenalty = (veryBigCallGasLimit - callGasLimit.toNumber()) * 0.1 + const expectedGasPenalty = (veryBigCallGasLimit - callGasLimit.toNumber()) const actualGasPenalty = gasUsed2 - gasUsed1 console.log(actualGasPenalty / expectedGasPenalty) diff --git a/test/samples/TokenPaymaster.test.ts b/test/samples/TokenPaymaster.test.ts index 4210b01cf..fd720b449 100644 --- a/test/samples/TokenPaymaster.test.ts +++ b/test/samples/TokenPaymaster.test.ts @@ -250,7 +250,7 @@ describe('TokenPaymaster', function () { assert.equal(actualTokenChargeEvents.toString(), actualTokenCharge.toString()) assert.equal(actualTokenChargeEvents.toString(), expectedTokenCharge.toString()) assert.equal(actualTokenPriceWithMarkup.toString(), expectedTokenPriceWithMarkup.toString()) - assert.closeTo(postOpGasCost.div(tx.effectiveGasPrice).toNumber(), 50000, 20000) + assert.closeTo(postOpGasCost.div(tx.effectiveGasPrice).toNumber(), 326000, 20000) await ethers.provider.send('evm_revert', [snapshot]) }) From 3f88c50a6ecec8f544fc7c672431a8af6d73fd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90or=C4=91e=20Mijovi=C4=87?= Date: Sat, 4 Oct 2025 21:35:29 +0200 Subject: [PATCH 3/3] Update actions/cache to v4. --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2ef0af86..07bd73793 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: node-version: '16' - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} @@ -42,7 +42,7 @@ jobs: with: node-version: '16' - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} @@ -57,7 +57,7 @@ jobs: with: node-version: '16' - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} @@ -71,7 +71,7 @@ jobs: with: node-version: '16' - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} @@ -80,7 +80,7 @@ jobs: - run: yarn compile - run: FORCE_COLOR=1 yarn coverage - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: solidity-coverage path: |