From 2fe4830be7b50c188e94528093f3b232c7dac0b2 Mon Sep 17 00:00:00 2001 From: Bence Haromi Date: Thu, 16 May 2024 14:31:22 +0100 Subject: [PATCH] Revert "fix the test" This reverts commit df54098428f0981a66dbe7b0d378be968ecc5b9a. --- .../contracts/test-contracts/GasBoundCallerTester.sol | 4 ++-- system-contracts/test/GasBoundCaller.spec.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/system-contracts/contracts/test-contracts/GasBoundCallerTester.sol b/system-contracts/contracts/test-contracts/GasBoundCallerTester.sol index 127fe59da..351a55f46 100644 --- a/system-contracts/contracts/test-contracts/GasBoundCallerTester.sol +++ b/system-contracts/contracts/test-contracts/GasBoundCallerTester.sol @@ -44,9 +44,9 @@ contract GasBoundCallerTester is GasBoundCaller { } } - function testReturndataOverhead(uint256 _len, uint256 _gasForInner) external { + function testReturndataOverhead(uint256 len) external { uint256 gasbefore = gasleft(); - this.testReturndataOverheadInner{gas: _gasForInner}(false, _len); + this.testReturndataOverheadInner(false, len); lastRecordedGasLeft = gasbefore - gasleft(); } diff --git a/system-contracts/test/GasBoundCaller.spec.ts b/system-contracts/test/GasBoundCaller.spec.ts index fb4c33609..ef6a300d6 100644 --- a/system-contracts/test/GasBoundCaller.spec.ts +++ b/system-contracts/test/GasBoundCaller.spec.ts @@ -40,16 +40,15 @@ describe("GasBoundCaller tests", function () { }); it("test returndata overhead", async () => { - // The tests' behavior depends on the amount of gas provided to its inner part, so we always provide 40kk await ( - await tester.testReturndataOverhead(10, 40_000_000, { + await tester.testReturndataOverhead(10, { gasLimit: 80_000_000, }) ).wait(); const smallBytecodeGas = await tester.lastRecordedGasLeft(); await ( - await tester.testReturndataOverhead(100000, 40_000_000, { + await tester.testReturndataOverhead(100000, { gasLimit: 80_000_000, }) ).wait();