From 56674e9a6d65879bb7c65becba2dd4b2fc7089e4 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 24 Oct 2024 01:27:45 +0000 Subject: [PATCH 1/3] test: add test to validate HTTP headers --- .../hardhat-network/provider/http-headers.ts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 hardhat-tests/test/internal/hardhat-network/provider/http-headers.ts diff --git a/hardhat-tests/test/internal/hardhat-network/provider/http-headers.ts b/hardhat-tests/test/internal/hardhat-network/provider/http-headers.ts new file mode 100644 index 000000000..d4203d6dc --- /dev/null +++ b/hardhat-tests/test/internal/hardhat-network/provider/http-headers.ts @@ -0,0 +1,53 @@ +import { assert } from "chai"; + +import { rpcQuantityToNumber } from "hardhat/internal/core/jsonrpc/types/base-types"; +import { workaroundWindowsCiFailures } from "../../../utils/workaround-windows-ci-failures"; +import { setCWD } from "../helpers/cwd"; +import { FORKED_PROVIDERS } from "../helpers/providers"; + +describe("Forking with HTTP headers", function () { + FORKED_PROVIDERS.forEach(({ rpcProvider, jsonRpcUrl, useProvider }) => { + workaroundWindowsCiFailures.call(this, { isFork: true }); + + let url: string; + let bearerToken: string; + const bearerTokenSeparatorIndex = jsonRpcUrl.lastIndexOf("/"); + if (bearerTokenSeparatorIndex !== -1) { + url = jsonRpcUrl.substring(0, bearerTokenSeparatorIndex); + bearerToken = jsonRpcUrl.substring(bearerTokenSeparatorIndex + 1); + } + + describe(`Using ${rpcProvider}`, function () { + setCWD(); + + this.beforeAll(function () { + // Skip infura because it doesn't support an API key-based bearer token + if (rpcProvider === "Infura") { + this.skip(); + } + + // Skip invalid URLs + if (url === undefined || bearerToken === undefined) { + this.skip(); + } + }); + + describe("With API key in HTTP headers", function () { + useProvider({ + forkConfig: { + jsonRpcUrl: url, + httpHeaders: { + Authorization: `Bearer ${bearerToken}`, + }, + }, + }); + + it("Complete JSON-RPC request", async function () { + const blockNumber = await this.provider.send("eth_blockNumber"); + const minBlockNumber = 10494745; // mainnet block number at 20.07.2020 + assert.isAtLeast(rpcQuantityToNumber(blockNumber), minBlockNumber); + }); + }); + }); + }); +}); From 6c59b096e93066d035d4665e92bf2e22829ff32a Mon Sep 17 00:00:00 2001 From: Wodann Date: Fri, 25 Oct 2024 02:05:48 +0000 Subject: [PATCH 2/3] build: bump Hardhat to v2.22.15 --- crates/tools/js/benchmark/package.json | 2 +- hardhat-tests/integration/smock/package.json | 2 +- hardhat-tests/package.json | 2 +- pnpm-lock.yaml | 32 ++++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/crates/tools/js/benchmark/package.json b/crates/tools/js/benchmark/package.json index cf825bf55..0987309ca 100644 --- a/crates/tools/js/benchmark/package.json +++ b/crates/tools/js/benchmark/package.json @@ -17,7 +17,7 @@ "eslint-plugin-import": "2.27.5", "eslint-plugin-mocha": "10.4.1", "eslint-plugin-prettier": "5.2.1", - "hardhat": "2.22.12", + "hardhat": "2.22.15", "lodash": "^4.17.11", "mocha": "^10.0.0", "prettier": "^3.2.5", diff --git a/hardhat-tests/integration/smock/package.json b/hardhat-tests/integration/smock/package.json index b3bcbe25c..fb32ed9b4 100644 --- a/hardhat-tests/integration/smock/package.json +++ b/hardhat-tests/integration/smock/package.json @@ -9,7 +9,7 @@ "@types/node": "^20.0.0", "chai": "^4.3.6", "ethers": "5.7.2", - "hardhat": "2.22.12", + "hardhat": "2.22.15", "mocha": "^10.0.0" }, "keywords": [], diff --git a/hardhat-tests/package.json b/hardhat-tests/package.json index b7b41a84f..c04d0f0e9 100644 --- a/hardhat-tests/package.json +++ b/hardhat-tests/package.json @@ -39,7 +39,7 @@ "ethereumjs-abi": "^0.6.8", "ethers": "^6.1.0", "fs-extra": "^7.0.1", - "hardhat": "2.22.12", + "hardhat": "2.22.15", "mocha": "^10.0.0", "prettier": "^3.2.5", "rimraf": "^3.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76dd23260..72c72585c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,8 +123,8 @@ importers: specifier: 5.2.1 version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5) hardhat: - specifier: 2.22.12 - version: 2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) + specifier: 2.22.15 + version: 2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) lodash: specifier: ^4.17.11 version: 4.17.21 @@ -249,8 +249,8 @@ importers: specifier: ^7.0.1 version: 7.0.1 hardhat: - specifier: 2.22.12 - version: 2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) + specifier: 2.22.15 + version: 2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) mocha: specifier: ^10.0.0 version: 10.3.0 @@ -280,10 +280,10 @@ importers: devDependencies: '@defi-wonderland/smock': specifier: ^2.4.0 - version: 2.4.0(@ethersproject/abi@5.7.0)(@ethersproject/abstract-provider@5.7.0)(@ethersproject/abstract-signer@5.7.0)(@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)))(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) + version: 2.4.0(@ethersproject/abi@5.7.0)(@ethersproject/abstract-provider@5.7.0)(@ethersproject/abstract-signer@5.7.0)(@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)))(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) '@nomiclabs/hardhat-ethers': specifier: ^2.2.3 - version: 2.2.3(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) + version: 2.2.3(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) '@types/node': specifier: ^20.0.0 version: 20.16.1 @@ -294,8 +294,8 @@ importers: specifier: 5.7.2 version: 5.7.2 hardhat: - specifier: 2.22.12 - version: 2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) + specifier: 2.22.15 + version: 2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) mocha: specifier: ^10.0.0 version: 10.3.0 @@ -1870,8 +1870,8 @@ packages: resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} engines: {node: '>=6'} - hardhat@2.22.12: - resolution: {integrity: sha512-yok65M+LsOeTBHQsjg//QreGCyrsaNmeLVzhTFqlOvZ4ZE5y69N0wRxH1b2BC9dGK8S8OPUJMNiL9X0RAvbm8w==} + hardhat@2.22.15: + resolution: {integrity: sha512-BpTGa9PE/sKAaHi4s/S1e9WGv63DR1m7Lzfd60C8gSEchDPfAJssVRSq0MZ2v2k76ig9m0kHAwVLf5teYwu/Mw==} hasBin: true peerDependencies: ts-node: '*' @@ -3351,16 +3351,16 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@defi-wonderland/smock@2.4.0(@ethersproject/abi@5.7.0)(@ethersproject/abstract-provider@5.7.0)(@ethersproject/abstract-signer@5.7.0)(@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)))(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4))': + '@defi-wonderland/smock@2.4.0(@ethersproject/abi@5.7.0)(@ethersproject/abstract-provider@5.7.0)(@ethersproject/abstract-signer@5.7.0)(@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)))(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4))': dependencies: '@ethersproject/abi': 5.7.0 '@ethersproject/abstract-provider': 5.7.0 '@ethersproject/abstract-signer': 5.7.0 '@nomicfoundation/ethereumjs-util': 9.0.4 - '@nomiclabs/hardhat-ethers': 2.2.3(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) + '@nomiclabs/hardhat-ethers': 2.2.3(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4)) diff: 5.0.0 ethers: 5.7.2 - hardhat: 2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) + hardhat: 2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) lodash.isequal: 4.5.0 lodash.isequalwith: 4.4.0 rxjs: 7.8.1 @@ -3876,10 +3876,10 @@ snapshots: '@nomicfoundation/solidity-analyzer-win32-ia32-msvc': 0.1.1 '@nomicfoundation/solidity-analyzer-win32-x64-msvc': 0.1.1 - '@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4))': + '@nomiclabs/hardhat-ethers@2.2.3(ethers@5.7.2)(hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4))': dependencies: ethers: 5.7.2 - hardhat: 2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) + hardhat: 2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4) '@pkgr/core@0.1.1': {} @@ -5193,7 +5193,7 @@ snapshots: hard-rejection@2.1.0: {} - hardhat@2.22.12(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4): + hardhat@2.22.15(ts-node@10.9.2(@types/node@20.16.1)(typescript@5.0.4))(typescript@5.0.4): dependencies: '@ethersproject/abi': 5.7.0 '@metamask/eth-sig-util': 4.0.1 From f717c61b039c8486e8fdcb9464de86ccba145a0b Mon Sep 17 00:00:00 2001 From: Wodann Date: Tue, 22 Oct 2024 07:20:50 +0000 Subject: [PATCH 3/3] fix: remove console.log backwards compatibility tests This was already done in Hardhat in this PR: https://github.com/NomicFoundation/hardhat/pull/5764 --- .../console-logs/backward-compatibility/c.sol | 27 ------------------- .../backward-compatibility/test.json | 24 ----------------- .../console-logs/backward-compatibility/c.sol | 27 ------------------- .../backward-compatibility/test.json | 24 ----------------- .../console-logs/backward-compatibility/c.sol | 27 ------------------- .../backward-compatibility/test.json | 24 ----------------- .../console-logs/backward-compatibility/c.sol | 27 ------------------- .../backward-compatibility/test.json | 24 ----------------- 8 files changed, 204 deletions(-) delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/c.sol delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/test.json delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/c.sol delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/test.json delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/c.sol delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/test.json delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/c.sol delete mode 100644 hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/test.json diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/c.sol b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/c.sol deleted file mode 100644 index e62a4373b..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../console.sol"; - -contract C { - address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); - - function log() public { - _sendLogPayload(abi.encodeWithSignature("log(uint)", 100)); - _sendLogPayload(abi.encodeWithSignature("log(uint256)", 101)); - _sendLogPayload(abi.encodeWithSignature("log(int)", 102)); - _sendLogPayload(abi.encodeWithSignature("log(int256)", 103)); - _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", 104, true)); - _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", 105, true)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", true, 106)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", true, 107)); - } - - function _sendLogPayload(bytes memory payload) private view { - uint256 payloadLength = payload.length; - address consoleAddress = CONSOLE_ADDRESS; - assembly { - let payloadStart := add(payload, 32) - let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) - } - } -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/test.json b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/test.json deleted file mode 100644 index 6f08bae79..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/backward-compatibility/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Should support methods both with u/int and u/int256", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [ - ["100"], - ["101"], - ["102"], - ["103"], - ["104", "true"], - ["105", "true"], - ["true", "106"], - ["true", "107"] - ] - } - ] -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/c.sol b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/c.sol deleted file mode 100644 index a810e5470..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../console.sol"; - -contract C { - address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); - - function log() public { - _sendLogPayload(abi.encodeWithSignature("log(uint)", 100)); - _sendLogPayload(abi.encodeWithSignature("log(uint256)", 101)); - _sendLogPayload(abi.encodeWithSignature("log(int)", 102)); - _sendLogPayload(abi.encodeWithSignature("log(int256)", 103)); - _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", 104, true)); - _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", 105, true)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", true, 106)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", true, 107)); - } - - function _sendLogPayload(bytes memory payload) private view { - uint256 payloadLength = payload.length; - address consoleAddress = CONSOLE_ADDRESS; - assembly { - let payloadStart := add(payload, 32) - let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) - } - } -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/test.json b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/test.json deleted file mode 100644 index 6f08bae79..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/backward-compatibility/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Should support methods both with u/int and u/int256", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [ - ["100"], - ["101"], - ["102"], - ["103"], - ["104", "true"], - ["105", "true"], - ["true", "106"], - ["true", "107"] - ] - } - ] -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/c.sol b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/c.sol deleted file mode 100644 index 0056125ad..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../console.sol"; - -contract C { - address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); - - function log() public { - _sendLogPayload(abi.encodeWithSignature("log(uint)", 100)); - _sendLogPayload(abi.encodeWithSignature("log(uint256)", 101)); - _sendLogPayload(abi.encodeWithSignature("log(int)", 102)); - _sendLogPayload(abi.encodeWithSignature("log(int256)", 103)); - _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", 104, true)); - _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", 105, true)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", true, 106)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", true, 107)); - } - - function _sendLogPayload(bytes memory payload) private view { - uint256 payloadLength = payload.length; - address consoleAddress = CONSOLE_ADDRESS; - assembly { - let payloadStart := add(payload, 32) - let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) - } - } -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/test.json b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/test.json deleted file mode 100644 index 6f08bae79..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/backward-compatibility/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Should support methods both with u/int and u/int256", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [ - ["100"], - ["101"], - ["102"], - ["103"], - ["104", "true"], - ["105", "true"], - ["true", "106"], - ["true", "107"] - ] - } - ] -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/c.sol b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/c.sol deleted file mode 100644 index 17135169d..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../console.sol"; - -contract C { - address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); - - function log() public { - _sendLogPayload(abi.encodeWithSignature("log(uint)", 100)); - _sendLogPayload(abi.encodeWithSignature("log(uint256)", 101)); - _sendLogPayload(abi.encodeWithSignature("log(int)", 102)); - _sendLogPayload(abi.encodeWithSignature("log(int256)", 103)); - _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", 104, true)); - _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", 105, true)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", true, 106)); - _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", true, 107)); - } - - function _sendLogPayload(bytes memory payload) private view { - uint256 payloadLength = payload.length; - address consoleAddress = CONSOLE_ADDRESS; - assembly { - let payloadStart := add(payload, 32) - let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) - } - } -} diff --git a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/test.json b/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/test.json deleted file mode 100644 index 6f08bae79..000000000 --- a/hardhat-tests/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/backward-compatibility/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "Should support methods both with u/int and u/int256", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [ - ["100"], - ["101"], - ["102"], - ["103"], - ["104", "true"], - ["105", "true"], - ["true", "106"], - ["true", "107"] - ] - } - ] -}