Skip to content

Commit

Permalink
Revert "fix the test"
Browse files Browse the repository at this point in the history
This reverts commit df54098.
  • Loading branch information
benceharomi committed May 16, 2024
1 parent 12858a3 commit 2fe4830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
5 changes: 2 additions & 3 deletions system-contracts/test/GasBoundCaller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2fe4830

Please sign in to comment.