diff --git a/.changeset/forty-dogs-sit.md b/.changeset/forty-dogs-sit.md new file mode 100644 index 0000000000..2bc3268b31 --- /dev/null +++ b/.changeset/forty-dogs-sit.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Improve solidity stack traces performance by getting them from the EDR response. diff --git a/packages/hardhat-core/package.json b/packages/hardhat-core/package.json index 7ba3cb1bd8..896b63f53c 100644 --- a/packages/hardhat-core/package.json +++ b/packages/hardhat-core/package.json @@ -100,7 +100,7 @@ "dependencies": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/edr": "^0.6.5", + "@nomicfoundation/edr": "^0.7.0", "@nomicfoundation/ethereumjs-common": "4.0.4", "@nomicfoundation/ethereumjs-tx": "5.0.4", "@nomicfoundation/ethereumjs-util": "9.0.4", diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts index b43e2565d8..e4b73c977f 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -1,7 +1,5 @@ import type { Artifacts, - CompilerInput, - CompilerOutput, EIP1193Provider, EthSubscription, HardhatNetworkChainsConfig, @@ -11,9 +9,6 @@ import type { import type { EdrContext, Provider as EdrProviderT, - VmTraceDecoder as VmTraceDecoderT, - VMTracer as VMTracerT, - RawTrace, Response, SubscriptionEvent, HttpHeader, @@ -23,7 +18,6 @@ import picocolors from "picocolors"; import debug from "debug"; import { EventEmitter } from "events"; import fsExtra from "fs-extra"; -import * as t from "io-ts"; import semver from "semver"; import { requireNapiRsModule } from "../../../common/napi-rs"; @@ -31,11 +25,6 @@ import { HARDHAT_NETWORK_RESET_EVENT, HARDHAT_NETWORK_REVERT_SNAPSHOT_EVENT, } from "../../constants"; -import { - rpcCompilerInput, - rpcCompilerOutput, -} from "../../core/jsonrpc/types/input/solc"; -import { validateParams } from "../../core/jsonrpc/types/input/validation"; import { InvalidArgumentsError, InvalidInputError, @@ -43,17 +32,10 @@ import { } from "../../core/providers/errors"; import { isErrorResponse } from "../../core/providers/http"; import { getHardforkName } from "../../util/hardforks"; -import { createModelsAndDecodeBytecodes } from "../stack-traces/compiler-to-model"; import { ConsoleLogger } from "../stack-traces/consoleLogger"; -import { - VmTraceDecoder, - initializeVmTraceDecoder, -} from "../stack-traces/vm-trace-decoder"; import { FIRST_SOLC_VERSION_SUPPORTED } from "../stack-traces/constants"; import { encodeSolidityStackTrace } from "../stack-traces/solidity-errors"; import { SolidityStackTrace } from "../stack-traces/solidity-stack-trace"; -import { SolidityTracer } from "../stack-traces/solidityTracer"; -import { VMTracer } from "../stack-traces/vm-tracer"; import { getPackageJson } from "../../util/packageInfo"; import { @@ -168,25 +150,16 @@ export class EdrProviderWrapper // temporarily added to make smock work with HH+EDR private _callOverrideCallback?: CallOverrideCallback; - /** Used for internal stack trace tests. */ - private _vmTracer?: VMTracerT; - private constructor( private readonly _provider: EdrProviderT, // we add this for backwards-compatibility with plugins like solidity-coverage private readonly _node: { _vm: MinimalEthereumJsVm; }, - private readonly _vmTraceDecoder: VmTraceDecoderT, // The common configuration for EthereumJS VM is not used by EDR, but tests expect it as part of the provider. - private readonly _common: Common, - tracingConfig?: TracingConfig + private readonly _common: Common ) { super(); - - if (tracingConfig !== undefined) { - initializeVmTraceDecoder(this._vmTraceDecoder, tracingConfig); - } } public static async create( @@ -238,8 +211,6 @@ export class EdrProviderWrapper const printLineFn = loggerConfig.printLineFn ?? printLine; const replaceLastLineFn = loggerConfig.replaceLastLineFn ?? replaceLastLine; - const vmTraceDecoder = new VmTraceDecoder(); - const hardforkName = getHardforkName(config.hardfork); const provider = await Provider.withConfig( @@ -297,15 +268,6 @@ export class EdrProviderWrapper { enable: loggerConfig.enabled, decodeConsoleLogInputsCallback: ConsoleLogger.getDecodedLogs, - getContractAndFunctionNameCallback: ( - code: Buffer, - calldata?: Buffer - ) => { - return vmTraceDecoder.getContractAndFunctionNamesForCall( - code, - calldata - ); - }, printLineCallback: (message: string, replace: boolean) => { if (replace) { replaceLastLineFn(message); @@ -314,6 +276,7 @@ export class EdrProviderWrapper } }, }, + tracingConfig ?? {}, (event: SubscriptionEvent) => { eventAdapter.emit("ethEvent", event); } @@ -327,9 +290,7 @@ export class EdrProviderWrapper const wrapper = new EdrProviderWrapper( provider, minimalEthereumJsNode, - vmTraceDecoder, - common, - tracingConfig + common ); // Pass through all events from the provider @@ -350,14 +311,9 @@ export class EdrProviderWrapper const params = args.params ?? []; - if (args.method === "hardhat_addCompilationResult") { - return this._addCompilationResultAction( - ...this._addCompilationResultParams(params) - ); - } else if (args.method === "hardhat_getStackTraceFailuresCount") { - return this._getStackTraceFailuresCountAction( - ...this._getStackTraceFailuresCountParams(params) - ); + if (args.method === "hardhat_getStackTraceFailuresCount") { + // stubbed for backwards compatibility + return 0; } const stringifiedArgs = JSON.stringify({ @@ -378,14 +334,11 @@ export class EdrProviderWrapper const needsTraces = this._node._vm.evm.events.eventNames().length > 0 || - this._node._vm.events.eventNames().length > 0 || - this._vmTracer !== undefined; + this._node._vm.events.eventNames().length > 0; if (needsTraces) { const rawTraces = responseObject.traces; for (const rawTrace of rawTraces) { - this._vmTracer?.observe(rawTrace); - // For other consumers in JS we need to marshall the entire trace over FFI const trace = rawTrace.trace(); @@ -434,13 +387,14 @@ export class EdrProviderWrapper if (isErrorResponse(response)) { let error; - const solidityTrace = responseObject.solidityTrace; - let stackTrace: SolidityStackTrace | undefined; - if (solidityTrace !== null) { - stackTrace = await this._rawTraceToSolidityStackTrace(solidityTrace); + let stackTrace: SolidityStackTrace | null = null; + try { + stackTrace = responseObject.stackTrace(); + } catch (e) { + log("Failed to get stack trace: %O", e); } - if (stackTrace !== undefined) { + if (stackTrace !== null) { error = encodeSolidityStackTrace(response.error.message, stackTrace); // Pass data and transaction hash from the original error (error as any).data = response.error.data?.data ?? undefined; @@ -482,15 +436,6 @@ export class EdrProviderWrapper } } - /** - * Sets a `VMTracer` that observes EVM throughout requests. - * - * Used for internal stack traces integration tests. - */ - public setVmTracer(vmTracer?: VMTracerT) { - this._vmTracer = vmTracer; - } - // temporarily added to make smock work with HH+EDR private _setCallOverrideCallback(callback: CallOverrideCallback) { this._callOverrideCallback = callback; @@ -533,88 +478,6 @@ export class EdrProviderWrapper this.emit("message", message); } - - private _addCompilationResultParams( - params: any[] - ): [string, CompilerInput, CompilerOutput] { - return validateParams( - params, - t.string, - rpcCompilerInput, - rpcCompilerOutput - ); - } - - private async _addCompilationResultAction( - solcVersion: string, - compilerInput: CompilerInput, - compilerOutput: CompilerOutput - ): Promise { - let bytecodes; - try { - bytecodes = createModelsAndDecodeBytecodes( - solcVersion, - compilerInput, - compilerOutput - ); - } catch (error) { - console.warn( - picocolors.yellow( - "The Hardhat Network tracing engine could not be updated. Run Hardhat with --verbose to learn more." - ) - ); - - log( - "VmTraceDecoder failed to be updated. Please report this to help us improve Hardhat.\n", - error - ); - - return false; - } - - for (const bytecode of bytecodes) { - this._vmTraceDecoder.addBytecode(bytecode); - } - - return true; - } - - private _getStackTraceFailuresCountParams(params: any[]): [] { - return validateParams(params); - } - - private _getStackTraceFailuresCountAction(): number { - return this._failedStackTraces; - } - - private async _rawTraceToSolidityStackTrace( - rawTrace: RawTrace - ): Promise { - const vmTracer = new VMTracer(); - vmTracer.observe(rawTrace); - - let vmTrace = vmTracer.getLastTopLevelMessageTrace(); - const vmTracerError = vmTracer.getLastError(); - - if (vmTrace !== undefined) { - vmTrace = this._vmTraceDecoder.tryToDecodeMessageTrace(vmTrace); - } - - try { - if (vmTrace === undefined || vmTracerError !== undefined) { - throw vmTracerError; - } - - const solidityTracer = new SolidityTracer(); - return solidityTracer.getStackTrace(vmTrace); - } catch (err) { - this._failedStackTraces += 1; - log( - "Could not generate stack trace. Please report this to help us improve Hardhat.\n", - err - ); - } - } } async function clientVersion(edrClientVersion: string): Promise { diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/compiler-to-model.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/compiler-to-model.ts deleted file mode 100644 index 024c1f650e..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/compiler-to-model.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { requireNapiRsModule } from "../../../common/napi-rs"; - -const { createModelsAndDecodeBytecodes } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -export { createModelsAndDecodeBytecodes }; diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/debug.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/debug.ts deleted file mode 100644 index 19bedc7654..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/debug.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { requireNapiRsModule } from "../../../common/napi-rs"; - -const { printMessageTrace, printStackTrace } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -export { printMessageTrace, printStackTrace }; diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/message-trace.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/message-trace.ts deleted file mode 100644 index 61bddec712..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/message-trace.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { - PrecompileMessageTrace, - CreateMessageTrace, - CallMessageTrace, -} from "@nomicfoundation/edr"; - -export type { PrecompileMessageTrace, CreateMessageTrace, CallMessageTrace }; - -export type MessageTrace = - | CreateMessageTrace - | CallMessageTrace - | PrecompileMessageTrace; diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts deleted file mode 100644 index c8154a413c..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { requireNapiRsModule } from "../../../common/napi-rs"; - -const { SolidityTracer } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -export { SolidityTracer }; diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-trace-decoder.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-trace-decoder.ts deleted file mode 100644 index b3b190df3a..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-trace-decoder.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { VmTraceDecoder as VmTraceDecoderT } from "@nomicfoundation/edr"; -import picocolors from "picocolors"; -import debug from "debug"; -import { Reporter } from "../../sentry/reporter"; -import { TracingConfig } from "../provider/node-types"; -import { requireNapiRsModule } from "../../../common/napi-rs"; - -const log = debug("hardhat:core:hardhat-network:node"); - -const { VmTraceDecoder, initializeVmTraceDecoder } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -function initializeVmTraceDecoderWrapper( - vmTraceDecoder: VmTraceDecoderT, - tracingConfig: TracingConfig -) { - try { - initializeVmTraceDecoder(vmTraceDecoder, tracingConfig); - } catch (error) { - console.warn( - picocolors.yellow( - "The Hardhat Network tracing engine could not be initialized. Run Hardhat with --verbose to learn more." - ) - ); - - log( - "Hardhat Network tracing disabled: VmTraceDecoder failed to be initialized. Please report this to help us improve Hardhat.\n", - error - ); - - if (error instanceof Error) { - Reporter.reportError(error); - } - } -} - -export { - VmTraceDecoder, - VmTraceDecoderT, - initializeVmTraceDecoderWrapper as initializeVmTraceDecoder, -}; diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-tracer.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-tracer.ts deleted file mode 100644 index 97d8bf6a55..0000000000 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/vm-tracer.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { requireNapiRsModule } from "../../../common/napi-rs"; - -const { VmTracer } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -export { VmTracer as VMTracer }; diff --git a/packages/hardhat-core/test/builtin-tasks/compile.ts b/packages/hardhat-core/test/builtin-tasks/compile.ts index f07116f21c..f8bdcf6512 100644 --- a/packages/hardhat-core/test/builtin-tasks/compile.ts +++ b/packages/hardhat-core/test/builtin-tasks/compile.ts @@ -1,3 +1,4 @@ +import { getLatestSupportedSolcVersion } from "@nomicfoundation/edr"; import { assert, expect } from "chai"; import ci from "ci-info"; import * as fsExtra from "fs-extra"; @@ -19,7 +20,6 @@ import { getAllFilesMatchingSync, getRealPathSync, } from "../../src/internal/util/fs-utils"; -import { getLatestSupportedVersion } from "../internal/hardhat-network/stack-traces/compilers-list"; function assertFileExists(pathToFile: string) { assert.isTrue( @@ -57,7 +57,7 @@ describe("compile task", function () { // Test to check that the last version of solc is being tested const userConfigSolcVersion = this.env.userConfig.solidity; - const lastSolcVersion = getLatestSupportedVersion(); + const lastSolcVersion = getLatestSupportedSolcVersion(); assert.equal( userConfigSolcVersion, diff --git a/packages/hardhat-core/test/builtin-tasks/flatten.ts b/packages/hardhat-core/test/builtin-tasks/flatten.ts index 6249b3cf1c..462f31c7b1 100644 --- a/packages/hardhat-core/test/builtin-tasks/flatten.ts +++ b/packages/hardhat-core/test/builtin-tasks/flatten.ts @@ -13,7 +13,7 @@ import { import { getPackageJson } from "../../src/internal/util/packageInfo"; import { useEnvironment } from "../helpers/environment"; import { useFixtureProject } from "../helpers/project"; -import { compileLiteral } from "../internal/hardhat-network/stack-traces/compilation"; +import { compileLiteral } from "../helpers/compilation"; function getContractsOrder(flattenedFiles: string) { const CONTRACT_REGEX = /\s*contract(\s+)(\w)/gm; diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js index 5c9acaeb05..01955745ce 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js @@ -1,7 +1,7 @@ const { getNextUnsupportedVersion, getNextNextUnsupportedVersion, -} = require("../../internal/hardhat-network/stack-traces/compilers-list"); +} = require("../../helpers/compilation"); module.exports = { solidity: { diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js index 06485062c0..31bfb710a3 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js @@ -1,6 +1,4 @@ -const { - getNextUnsupportedVersion, -} = require("../../internal/hardhat-network/stack-traces/compilers-list"); +const { getNextUnsupportedVersion } = require("../../helpers/compilation"); module.exports = { solidity: getNextUnsupportedVersion(), diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js index cba1217c70..b83e0d5817 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js @@ -1,6 +1,4 @@ -const { - getNextUnsupportedVersion, -} = require("../../internal/hardhat-network/stack-traces/compilers-list"); +const { getNextUnsupportedVersion } = require("../../helpers/compilation"); module.exports = { solidity: { diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilation.ts b/packages/hardhat-core/test/helpers/compilation.ts similarity index 53% rename from packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilation.ts rename to packages/hardhat-core/test/helpers/compilation.ts index f96855ad3c..0ec5f3a4b3 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilation.ts +++ b/packages/hardhat-core/test/helpers/compilation.ts @@ -1,58 +1,38 @@ -import fs from "fs"; -import path from "path"; +import { getLatestSupportedSolcVersion } from "@nomicfoundation/edr"; +import semver from "semver"; import { Compiler as SolcJsCompiler, NativeCompiler, -} from "../../../../src/internal/solidity/compiler"; +} from "../../src/internal/solidity/compiler"; import { Compiler, CompilerDownloader, CompilerPlatform, -} from "../../../../src/internal/solidity/compiler/downloader"; -import { getCompilersDir } from "../../../../src/internal/util/global-dir"; +} from "../../src/internal/solidity/compiler/downloader"; +import { getCompilersDir } from "../../src/internal/util/global-dir"; -import { CompilerInput, CompilerOutput } from "../../../../src/types"; - -import { SolidityCompiler } from "./compilers-list"; +import { CompilerInput, CompilerOutput } from "../../src/types"; interface SolcSourceFileToContents { [filename: string]: { content: string }; } -function getSolcSourceFileMapping(sources: string[]): SolcSourceFileToContents { - return Object.assign( - {}, - ...sources.map((s) => ({ - [path.basename(s)]: { content: fs.readFileSync(s, "utf8") }, - })) - ); -} +export async function compileLiteral( + source: string, + solcVersion: string = "0.8.0", + filename: string = "literal.sol" +): Promise<[CompilerInput, CompilerOutput]> { + await downloadCompiler(solcVersion); + const compiler = await getCompilerForVersion(solcVersion); -function getSolcInput( - sources: SolcSourceFileToContents, - compilerOptions: SolidityCompiler -): CompilerInput { - const isViaIR = compilerOptions.optimizer?.viaIR ?? false; + return compile(getSolcInputForLiteral(source, filename), compiler); +} - const optimizerDetails = isViaIR - ? { - yulDetails: { - optimizerSteps: "u", - }, - } - : undefined; - - const optimizer = - compilerOptions.optimizer === undefined - ? { - enabled: false, - } - : { - enabled: true, - runs: compilerOptions.optimizer.runs, - details: optimizerDetails, - }; +function getSolcInput(sources: SolcSourceFileToContents): CompilerInput { + const optimizer = { + enabled: false, + }; const settings: CompilerInput["settings"] = { optimizer, @@ -69,12 +49,6 @@ function getSolcInput( }, }; - // old compilers might throw if we use the `viaIR` setting because they don't - // recognize the option, so we only set it when it's true - if (isViaIR) { - settings.viaIR = true; - } - return { language: "Solidity", sources, @@ -82,23 +56,13 @@ function getSolcInput( }; } -function getSolcInputForFiles( - sources: string[], - compilerOptions: SolidityCompiler -): CompilerInput { - return getSolcInput(getSolcSourceFileMapping(sources), compilerOptions); -} - function getSolcInputForLiteral( source: string, - compilerOptions: SolidityCompiler, filename: string = "literal.sol" ): CompilerInput { - return getSolcInput({ [filename]: { content: source } }, compilerOptions); + return getSolcInput({ [filename]: { content: source } }); } -export const COMPILER_DOWNLOAD_TIMEOUT = 10000; - async function compile( input: CompilerInput, compiler: Compiler @@ -123,43 +87,6 @@ async function compile( return [input, output]; } -export async function compileFiles( - sources: string[], - compilerOptions: SolidityCompiler -): Promise<[CompilerInput, CompilerOutput]> { - let compiler: Compiler; - // special case for running tests with custom solc - if (path.isAbsolute(compilerOptions.compilerPath)) { - compiler = { - compilerPath: compilerOptions.compilerPath, - isSolcJs: process.env.HARDHAT_TESTS_SOLC_NATIVE !== "true", - version: compilerOptions.solidityVersion, - longVersion: compilerOptions.solidityVersion, - }; - } else { - compiler = await getCompilerForVersion(compilerOptions.solidityVersion); - } - - return compile(getSolcInputForFiles(sources, compilerOptions), compiler); -} - -export async function compileLiteral( - source: string, - compilerOptions: SolidityCompiler = { - solidityVersion: "0.8.0", - compilerPath: "soljson-v0.8.0+commit.c7dfd78e.js", - }, - filename: string = "literal.sol" -): Promise<[CompilerInput, CompilerOutput]> { - await downloadCompiler(compilerOptions.solidityVersion); - const compiler = await getCompilerForVersion(compilerOptions.solidityVersion); - - return compile( - getSolcInputForLiteral(source, compilerOptions, filename), - compiler - ); -} - async function getCompilerForVersion( solidityVersion: string ): Promise { @@ -188,7 +115,7 @@ async function getCompilerForVersion( return wasmCompiler; } -export async function downloadCompiler(solidityVersion: string): Promise { +async function downloadCompiler(solidityVersion: string): Promise { const compilersCache = await getCompilersDir(); const downloader = CompilerDownloader.getConcurrencySafeDownloader( CompilerDownloader.getCompilerPlatform(), @@ -232,3 +159,9 @@ export async function downloadCompiler(solidityVersion: string): Promise { ); } } + +export const getNextUnsupportedVersion = () => + semver.inc(getLatestSupportedSolcVersion(), "patch")!; + +export const getNextNextUnsupportedVersion = () => + semver.inc(getNextUnsupportedVersion(), "patch")!; diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/.gitignore b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/.gitignore deleted file mode 100644 index a61cc2ae59..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/.gitignore +++ /dev/null @@ -1 +0,0 @@ -compilers/ diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/README.md b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/README.md deleted file mode 100644 index fa72f9b05a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/README.md +++ /dev/null @@ -1,67 +0,0 @@ -# Stack traces tests - -> ⚠️ _This explanation was written on 2023-07-04, and can be out of date or incomplete. If you think there's something wrong, or that some important part of the explanation is missing, please open an issue about it._ ⚠️ - -This directory contains tests related to our tracing engine. They are mainly about the generated stack traces, but they also test things like inferred errors and console logs. - -These tests are written with an ad-hoc mini framework, where each test corresponds to a directory under `test-files`. Each of these directories has a `test.json` file describing the test, and Solidity files that are used by that test. The `test.ts` file then consumes these files to generate and execute the corresponding tests. - -## Example - -One simple example of a test is `test-files/0_8/call-message/external-calls/non-contract-account-called`. This test checks that, when a transaction makes a call to an address that is not a contract, the proper error is inferred by our heuristics and that the frame in the stack trace has the right file name, line number, contract name and function name. - -```json -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} -``` - -Each `test.json` file can have several fields, but the only mandatory one is a `transactions` array with the list of transactions that should be executed. The `TestDefinition` interface in [`test.ts`](https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts) describes the possible contents of a `test.json` file. - -Transactions can be deployments or calls. In this case the first transaction deploys the contract `C` in `c.sol`, and the second transaction calls the function `test` in that contract. The contract that is called is indicated by `"to": 0`, which corresponds to the first contract deployed by this test. - -Each transaction can have some "assertion" fields, which describe what should happen when that transaction is executed. The most common one is `stackTrace`, which indicates that the transaction should revert and that Hardhat should generate the given stack trace. In this case, the test is saying that the transaction should revert with a single frame, which has an inferred `NONCONTRACT_ACCOUNT_CALLED_ERROR` error, and points to line 11 of the `c.sol` file. - -Another possible assertion field is `consoleLogs`, which specifies that the transaction should emit certain logs with `console.sol`. See for example [this `test.json`](https://github.com/NomicFoundation/hardhat/blob/stack-traces-tests-explainer/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/test.json). - -## Directory structure - -All the tests are located under the `test-files` directory. Each directory immediately under it corresponds to a minor version of Solidity. In practice this means that tests under `test-files/0_8` will have a `pragma solidity ^0.8.0`, but it is possible to specify tests that are only run for a more precise range of versions. - -There are two other directories under `test-files`. One is `version-independent`, which has tests that can be run with any version of solc (right now there's only one test there). The other one is `artifacts`, which is a cache directory with all the compilation outputs from previous runs. - -## Running a single test - -`test.json` files can (temporarily) have a `"only": true` field, which means that only that test will be run. This is equivalent to using `it.only` in Mocha. - -## How tests are executed - -The `compilers-list.ts` module has a list of solc versions that can be used by these tests. By default, only the ones that have `latestSolcVersion: true` are run, but we have a [CI workflow](https://github.com/NomicFoundation/hardhat/actions/workflows/hardhat-core-ci.yml) that you can trigger manually with the `test-all-solc-versions` input set to `true` to executes the tests using all the available compilers. - -These compilers are grouped by minor version (that is, a group with all the 0.5.x compilers, a group all the 0.6.x compilers and so on) and each group is used to run the tests in the corresponding directory (`test-files/0_5`, `test-files/0_6`, and so on). - -The solidity files in each test directory are compiled (unless a cached compilation output exists) and then the `test.json` description is then executed. - -## The `HARDHAT_TESTS_SOLC_PATH` environment variable - -If this variable is set, the only compiler used will be the one that is available in that path. For example, if you want to test a nightly version, you would set the envvars `HARDHAT_TESTS_SOLC_PATH=/path/to/solc-nightly-0.8.21 HARDHAT_TESTS_SOLC_VERSION=0.8.21` and then run the tests. This would only run the test files under `test-files/0_8` and `test-files/version-independent`. diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilers-list.ts b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilers-list.ts deleted file mode 100644 index f839c4d8af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/compilers-list.ts +++ /dev/null @@ -1,321 +0,0 @@ -import semver from "semver"; - -export interface SolidityCompilerOptimizer { - viaIR: boolean; - runs: number; -} - -export interface SolidityCompiler { - only?: boolean; - solidityVersion: string; - compilerPath: string; - latestSolcVersion?: boolean; - optimizer?: SolidityCompilerOptimizer; -} - -export const solidityCompilers: SolidityCompiler[] = [ - // 0.5 - { - solidityVersion: "0.5.1", - compilerPath: "soljson-v0.5.1+commit.c8a2cb62.js", - }, - { - solidityVersion: "0.5.17", - compilerPath: "soljson-v0.5.17+commit.d19bba13.js", - }, - - // 0.6 - { - solidityVersion: "0.6.0", - compilerPath: "soljson-v0.6.0+commit.26b70077.js", - }, - { - solidityVersion: "0.6.1", - compilerPath: "soljson-v0.6.1+commit.e6f7d5a4.js", - }, - { - solidityVersion: "0.6.2", - compilerPath: "soljson-v0.6.2+commit.bacdbe57.js", - }, - // This version is enabled because it contains of a huge change in how - // sourcemaps work - { - solidityVersion: "0.6.3", - compilerPath: "soljson-v0.6.3+commit.8dda9521.js", - latestSolcVersion: true, - }, - { - solidityVersion: "0.6.4", - compilerPath: "soljson-v0.6.4+commit.1dca32f3.js", - }, - { - solidityVersion: "0.6.5", - compilerPath: "soljson-v0.6.5+commit.f956cc89.js", - }, - { - solidityVersion: "0.6.6", - compilerPath: "soljson-v0.6.6+commit.6c089d02.js", - }, - { - solidityVersion: "0.6.7", - compilerPath: "soljson-v0.6.7+commit.b8d736ae.js", - }, - { - solidityVersion: "0.6.8", - compilerPath: "soljson-v0.6.8+commit.0bbfe453.js", - }, - { - solidityVersion: "0.6.9", - compilerPath: "soljson-v0.6.9+commit.3e3065ac.js", - }, - { - solidityVersion: "0.6.10", - compilerPath: "soljson-v0.6.10+commit.00c0fcaf.js", - }, - { - solidityVersion: "0.6.11", - compilerPath: "soljson-v0.6.11+commit.5ef660b1.js", - }, - { - solidityVersion: "0.6.12", - compilerPath: "soljson-v0.6.12+commit.27d51765.js", - }, - - // 0.7 - { - solidityVersion: "0.7.0", - compilerPath: "soljson-v0.7.0+commit.9e61f92b.js", - }, - { - solidityVersion: "0.7.1", - compilerPath: "soljson-v0.7.1+commit.f4a555be.js", - }, - { - solidityVersion: "0.7.4", - compilerPath: "soljson-v0.7.4+commit.3f05b770.js", - }, - { - solidityVersion: "0.7.6", - compilerPath: "soljson-v0.7.6+commit.7338295f.js", - latestSolcVersion: true, - }, - - // 0.8 - { - solidityVersion: "0.8.1", - compilerPath: "soljson-v0.8.1+commit.df193b15.js", - }, - { - solidityVersion: "0.8.4", - compilerPath: "soljson-v0.8.4+commit.c7e474f2.js", - }, - { - solidityVersion: "0.8.5", - compilerPath: "soljson-v0.8.5+commit.a4f2e591.js", - }, - { - solidityVersion: "0.8.6", - compilerPath: "soljson-v0.8.6+commit.11564f7e.js", - }, - { - solidityVersion: "0.8.7", - compilerPath: "soljson-v0.8.7+commit.e28d00a7.js", - }, - { - solidityVersion: "0.8.8", - compilerPath: "soljson-v0.8.8+commit.dddeac2f.js", - }, - { - solidityVersion: "0.8.9", - compilerPath: "soljson-v0.8.9+commit.e5eed63a.js", - }, - { - solidityVersion: "0.8.10", - compilerPath: "soljson-v0.8.10+commit.fc410830.js", - }, - { - solidityVersion: "0.8.11", - compilerPath: "soljson-v0.8.11+commit.d7f03943.js", - }, - { - solidityVersion: "0.8.12", - compilerPath: "soljson-v0.8.12+commit.f00d7308.js", - }, - { - solidityVersion: "0.8.13", - compilerPath: "soljson-v0.8.13+commit.abaa5c0e.js", - }, - { - solidityVersion: "0.8.14", - compilerPath: "soljson-v0.8.14+commit.80d49f37.js", - }, - { - solidityVersion: "0.8.15", - compilerPath: "soljson-v0.8.15+commit.e14f2714.js", - }, - { - solidityVersion: "0.8.16", - compilerPath: "soljson-v0.8.16+commit.07a7930e.js", - }, - { - solidityVersion: "0.8.17", - compilerPath: "soljson-v0.8.17+commit.8df45f5f.js", - }, - { - solidityVersion: "0.8.17", - compilerPath: "soljson-v0.8.17+commit.8df45f5f.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.18", - compilerPath: "soljson-v0.8.18+commit.87f61d96.js", - }, - { - solidityVersion: "0.8.18", - compilerPath: "soljson-v0.8.18+commit.87f61d96.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.19", - compilerPath: "soljson-v0.8.19+commit.7dd6d404.js", - }, - { - solidityVersion: "0.8.19", - compilerPath: "soljson-v0.8.19+commit.7dd6d404.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.20", - compilerPath: "soljson-v0.8.20+commit.a1b79de6.js", - }, - { - solidityVersion: "0.8.20", - compilerPath: "soljson-v0.8.20+commit.a1b79de6.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.21", - compilerPath: "soljson-v0.8.21+commit.d9974bed.js", - }, - { - solidityVersion: "0.8.21", - compilerPath: "soljson-v0.8.21+commit.d9974bed.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.22", - compilerPath: "soljson-v0.8.22+commit.4fc1097e.js", - }, - { - solidityVersion: "0.8.22", - compilerPath: "soljson-v0.8.22+commit.4fc1097e.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.23", - compilerPath: "soljson-v0.8.23+commit.f704f362.js", - }, - { - solidityVersion: "0.8.23", - compilerPath: "soljson-v0.8.23+commit.f704f362.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.24", - compilerPath: "soljson-v0.8.24+commit.e11b9ed9.js", - }, - { - solidityVersion: "0.8.24", - compilerPath: "soljson-v0.8.24+commit.e11b9ed9.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.25", - compilerPath: "soljson-v0.8.25+commit.b61c2a91.js", - }, - { - solidityVersion: "0.8.25", - compilerPath: "soljson-v0.8.25+commit.b61c2a91.js", - optimizer: { - runs: 200, - viaIR: true, - }, - }, - { - solidityVersion: "0.8.26", - compilerPath: "soljson-v0.8.26+commit.8a97fa7a.js", - latestSolcVersion: true, - }, - { - solidityVersion: "0.8.26", - compilerPath: "soljson-v0.8.26+commit.8a97fa7a.js", - optimizer: { - runs: 200, - viaIR: true, - }, - latestSolcVersion: true, - }, - { - solidityVersion: "0.8.27", - compilerPath: "soljson-v0.8.27+commit.40a35a09.js", - latestSolcVersion: true, - }, - { - solidityVersion: "0.8.27", - compilerPath: "soljson-v0.8.27+commit.40a35a09.js", - optimizer: { - runs: 200, - viaIR: true, - }, - latestSolcVersion: true, - }, - { - solidityVersion: "0.8.28", - compilerPath: "soljson-v0.8.28+commit.7893614a.js", - latestSolcVersion: true, - }, - { - solidityVersion: "0.8.28", - compilerPath: "soljson-v0.8.28+commit.7893614a.js", - optimizer: { - runs: 200, - viaIR: true, - }, - latestSolcVersion: true, - }, -]; - -export const getLatestSupportedVersion = () => - solidityCompilers.map((sc) => sc.solidityVersion).sort(semver.compare)[ - solidityCompilers.length - 1 - ]; - -export const getNextUnsupportedVersion = () => - semver.inc(getLatestSupportedVersion(), "patch")!; - -export const getNextNextUnsupportedVersion = () => - semver.inc(getNextUnsupportedVersion(), "patch")!; diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/execution.ts b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/execution.ts deleted file mode 100644 index 55e6333361..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/execution.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { - bigIntToHex, - bytesToHex, - privateToAddress, - toBytes, -} from "@nomicfoundation/ethereumjs-util"; - -import { MessageTrace } from "../../../../src/internal/hardhat-network/stack-traces/message-trace"; -import { defaultHardhatNetworkParams } from "../../../../src/internal/core/config/default-config"; -import { - MempoolOrder, - TracingConfig, -} from "../../../../src/internal/hardhat-network/provider/node-types"; -import { EdrProviderWrapper } from "../../../../src/internal/hardhat-network/provider/provider"; -import { VMTracer } from "../../../../src/internal/hardhat-network/stack-traces/vm-tracer"; -import { LoggerConfig } from "../../../../src/internal/hardhat-network/provider/modules/logger"; - -function toBuffer(x: Parameters[0]) { - return Buffer.from(toBytes(x)); -} - -const abi = require("ethereumjs-abi"); - -const senderPrivateKey = - "0xe331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109"; - -const senderAddress = bytesToHex(privateToAddress(toBuffer(senderPrivateKey))); - -export async function instantiateProvider( - loggerConfig: LoggerConfig, - tracingConfig: TracingConfig -): Promise { - const config = { - hardfork: "cancun", - chainId: 1, - networkId: 1, - blockGasLimit: 10_000_000, - minGasPrice: 0n, - automine: true, - intervalMining: 0, - mempoolOrder: "priority" as MempoolOrder, - chains: defaultHardhatNetworkParams.chains, - genesisAccounts: [ - { - privateKey: senderPrivateKey, - balance: 1e15, - }, - ], - allowUnlimitedContractSize: false, - throwOnTransactionFailures: false, - throwOnCallFailures: false, - allowBlocksWithSameTimestamp: false, - coinbase: "0x0000000000000000000000000000000000000000", - initialBaseFeePerGas: 0, - enableTransientStorage: false, - enableRip7212: false, - }; - - const provider = await EdrProviderWrapper.create( - config, - loggerConfig, - tracingConfig - ); - - return provider; -} - -export function encodeConstructorParams( - contractAbi: any[], - params: any[] -): Buffer { - const fAbi = contractAbi.find((a) => a.type === "constructor"); - - if (fAbi === undefined || params.length === 0) { - return Buffer.from([]); - } - - const types = fAbi.inputs.map((i: any) => i.type); - - return abi.rawEncode(types, params); -} - -export function encodeCall( - contractAbi: any[], - functionName: string, - params: any[] -): Buffer { - const fAbi = contractAbi.find( - (a) => a.name === functionName && a.inputs.length === params.length - ); - - const types = fAbi.inputs.map((i: any) => i.type); - const methodId = abi.methodID(functionName, types); - - return Buffer.concat([methodId, abi.rawEncode(types, params)]); -} - -export interface TxData { - data: Buffer; - to?: Buffer; - value?: bigint; - gas?: bigint; -} - -export async function traceTransaction( - provider: EdrProviderWrapper, - txData: TxData -): Promise { - const vmTracer = new VMTracer(); - provider.setVmTracer(vmTracer); - - try { - await provider.request({ - method: "eth_sendTransaction", - params: [ - { - from: senderAddress, - data: bytesToHex(txData.data), - to: txData.to !== undefined ? bytesToHex(txData.to) : undefined, - value: bigIntToHex(txData.value ?? 0n), - // If the test didn't define a gasLimit, we assume 4M is enough - gas: bigIntToHex(txData.gas ?? 4000000n), - gasPrice: bigIntToHex(10n), - }, - ], - }); - - const trace = vmTracer.getLastTopLevelMessageTrace(); - if (trace === undefined) { - const error = vmTracer.getLastError(); - throw error ?? new Error("Cannot get last top level message trace"); - } - return trace; - } finally { - provider.setVmTracer(undefined); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/c.sol deleted file mode 100644 index decffc7041..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -import "./d.sol"; - -contract C { - function test() public { - D d = new D(); - - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/d.sol deleted file mode 100644 index f749f3605d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -contract D { - struct MyStruct { - uint x; - uint y; - } - - function fail() public returns (MyStruct[] memory) - { - revert("D failed"); - - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/test.json deleted file mode 100644 index a0403282cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/call-failing-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/c.sol deleted file mode 100644 index bbf58bebbd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -contract C is D { - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = super.test(); - console.log(structs[1].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/d.sol deleted file mode 100644 index 259124f023..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/d.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract D { - struct MyStruct { - uint x; - uint y; - } - - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0].x = 1; - structs[1].x = 2; - console.log(structs[0].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/test.json deleted file mode 100644 index 8249b806f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/inherits-returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [], - "consoleLogs": [["1"], ["2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/c.sol deleted file mode 100644 index 2edea859d4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function doSomething(uint256[][] memory numbers) public returns (uint256) { - return numbers[0][0]; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/nested-arrays-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/c.sol deleted file mode 100644 index bde647a044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -contract C { - struct MyStruct { - uint x; - uint y; - } - - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/test.json deleted file mode 100644 index a9e57fd743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/non-payable-returns-struct/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/c.sol deleted file mode 100644 index eabaf55b8f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.5.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - struct MyStruct { - address a; - } - - function log() public { - MyStruct[] memory ms = getStructs(); - console.log(ms[0].a); - } - - function getStructs() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(0x0000000000000000000000000000000000000001); - structs[1] = MyStruct(0x0000000000000000000000000000000000000002); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/test.json deleted file mode 100644 index b9555dcbda..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/abi-v2/returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [], - "consoleLogs": [["0x0000000000000000000000000000000000000001"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/c.sol deleted file mode 100644 index 3d22608774..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - d.test2(); - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/d.sol deleted file mode 100644 index 370e3c51f6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/test.json deleted file mode 100644 index c289401034..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/c.sol deleted file mode 100644 index 540d762c9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/d.sol deleted file mode 100644 index e70f95cc49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - constructor() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/test.json deleted file mode 100644 index d71e1c0655..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/contract-creation-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 35f2164d34..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index c8fd11a87e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 300e5f46af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index bd468a347a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 084c8e3dd7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 4f776d70dd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index 7c91cc4794..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 023f1a41f7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - IgnoredL.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 7996e5cd9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 40fcde2bd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 084c8e3dd7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index 1e48e6e2c9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index fcefc18710..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index 022c8beabc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index 1c88044480..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b188c07f2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index 022c8beabc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index 532de99397..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 6903d2e256..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index 022c8beabc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 9b9b507fc1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index cf6f0a2b3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index 22cb21aab6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - function f() public { - } -} - -contract C { - - function test() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0a47f8c5f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index 0bbd99cab2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index 7b04738e07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/c.sol deleted file mode 100644 index 89085376de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public { - r(); - } - - function r() internal { - revert("D failed"); - } -} - -contract C { - - function forward(address implementation) internal { - assembly { - calldatacopy(0, 0, calldatasize) - let result := delegatecall(gas, implementation, 0, calldatasize, 0, 0) - returndatacopy(0, 0, returndatasize) - switch result - case 0 { revert(0, returndatasize) } - default { return(0, returndatasize) } - } - } - - function () external payable { - D d = new D(); - forward(address(d)); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/test.json deleted file mode 100644 index 94ea8ade31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/proxy/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xa9cc4718", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 29 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "forward", - "line": 19 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "fail", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "r", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/c.sol deleted file mode 100644 index 820297713b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/test.json deleted file mode 100644 index 0eebb2e652..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index 4d692ee375..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index e0a88ecf1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/test.json deleted file mode 100644 index e7b7de2410..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/c.sol deleted file mode 100644 index 7ba06eed10..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - mapping(uint => uint) public x; - function internalFunction(mapping(uint => uint) storage m) internal pure { - revert(); - } - - function test() public { - internalFunction(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/test.json deleted file mode 100644 index e11057d991..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/storage-mapping-parameter/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 10 - }, - "functionType": 1 - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "function": "internalFunction", - "contract": "C", - "file": "c.sol", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index 61f2c269df..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 0b87ba4aac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index 61f2c269df..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index f76d0f1c6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol deleted file mode 100644 index 873bb3cd8a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol deleted file mode 100644 index 8404e11fd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.5.0; - -// Contracts starting with Ignored -// are ignored by the tracer -contract IgnoredD { - - function fail() public { - D d = new D(); - d.fail(); - } - -} - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json deleted file mode 100644 index 939334a8f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 17 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol deleted file mode 100644 index 873bb3cd8a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol deleted file mode 100644 index 28e38fc65d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract IgnoredD { - - function fail() public returns (uint) { - revert("IngoredD failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json deleted file mode 100644 index 83d7bb3471..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "IngoredD failed" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/c.sol deleted file mode 100644 index a05eb27939..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/d.sol deleted file mode 100644 index 4bab176d33..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () external { - revert("inherited fallback"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/test.json deleted file mode 100644 index 27fbeb065e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited fallback", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/c.sol deleted file mode 100644 index a05eb27939..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/d.sol deleted file mode 100644 index ecd3af3bc1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - modifier fail { - revert("inherited function with modifier"); - _; - } - - function test() fail external { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/test.json deleted file mode 100644 index b17a8fa09a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited function with modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/c.sol deleted file mode 100644 index b81b0b92d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - - function test() fail external { - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/d.sol deleted file mode 100644 index 7a65a6482b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - modifier fail { - revert("inherited modifier"); - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/test.json deleted file mode 100644 index 683a3c985f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/c.sol deleted file mode 100644 index a05eb27939..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/d.sol deleted file mode 100644 index a18a7a2c49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () external { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/test.json deleted file mode 100644 index cc7d7c760c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-fallback/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/c.sol deleted file mode 100644 index a05eb27939..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/d.sol deleted file mode 100644 index 298d7ebf50..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function test() external { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/test.json deleted file mode 100644 index 205b5d6d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/inherited-nonpayable-function/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/c.sol deleted file mode 100644 index 2dc8a8810d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - - function test() public { - super.test(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/d.sol deleted file mode 100644 index f789ff9a7d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -import "./e.sol"; - -contract D is E { - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/e.sol deleted file mode 100644 index 3c4cd280b0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/e.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract E { - - function test() public { - revert("E failed"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/test.json deleted file mode 100644 index 976bd39194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-skiping-parent/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "C", - "file": "e.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/c.sol deleted file mode 100644 index 2dc8a8810d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - - function test() public { - super.test(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/d.sol deleted file mode 100644 index ab49bd9d06..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function test() m public { - } - - modifier m { - revert("m failed"); - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/test.json deleted file mode 100644 index 481e2c24a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call-with-modifier-failure/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/c.sol deleted file mode 100644 index 2dc8a8810d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { - - function test() public { - super.test(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/d.sol deleted file mode 100644 index 1cc99caca8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function test() public { - revert("failed from super"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/test.json deleted file mode 100644 index 0eb6ca4b9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/inheritance/super-call/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failed from super", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index fcf407b318..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 9a44213375..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index ad8232c4a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index 27dfceeba7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 711be332ac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 1b5711a70d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/c.sol deleted file mode 100644 index e5c473546e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - _; - } - - function fail() mod internal { - revert("fail"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/test.json deleted file mode 100644 index 382751c049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 8851ca35f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index c232fb9665..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index fd4ece070c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - function fail() private { - revert("private"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 9e2b8d01a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index b376d9e666..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - fail(); - } - - function fail() public { - revert("public"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index 30972741e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index da24fee225..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/c.sol deleted file mode 100644 index af7e5a8841..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test(uint i) public { - if (i > 0) { - test(i - 1); - } - - revert("base case"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/test.json deleted file mode 100644 index 208b2804a0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/internal-calls/recursive-call/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [2], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "base case", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/c.sol deleted file mode 100644 index 6f608440bb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test(address payable a) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/test.json deleted file mode 100644 index 42c4c0f0f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/address-payable-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xbb29998e", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/c.sol deleted file mode 100644 index de8ecf6597..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - - - - function test(bool b) public { - assert(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/test.json deleted file mode 100644 index aa69202405..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/assert/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/c.sol deleted file mode 100644 index 3f4ed09f62..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - function f() public returns (bool) { - return false; - } -} - -interface I { - function f() external returns (uint); -} - -contract C { - - function test() public { - fail(new D()); - } - - function fail(D d) public { - require(d.f(), "D.f returned false"); - } - - function fail2(I i) public { - - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/test.json deleted file mode 100644 index 9a39e71f4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/contract-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x0cad6d76", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail2", - "line": 23 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/c.sol deleted file mode 100644 index 0e357b7613..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/test.json deleted file mode 100644 index 8d1211b1d0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-existing-function/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "function": "f", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/c.sol deleted file mode 100644 index 68e153db3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function f() internal returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/test.json deleted file mode 100644 index f2c17f5f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-internal-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/c.sol deleted file mode 100644 index 0e357b7613..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/test.json deleted file mode 100644 index df1d3fb945..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/direct-library-call-non-existing-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff1", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index ef959a87ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - function test(uint256 i) public - { - uint256 j = 123 / i; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 4515494873..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/c.sol deleted file mode 100644 index b8b3faeb6b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - enum E { - YES, - NO - } -} - -contract C is D { - - function test(E e) public { - assert(e == E.YES); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/test.json deleted file mode 100644 index c5fd0fa16d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/enum-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf1820bdc", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index aa5bd3484b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index 0574360fa8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/c.sol deleted file mode 100644 index 826e7e9fc1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - function () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/test.json deleted file mode 100644 index 769d6143b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-with-selector/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/c.sol deleted file mode 100644 index cd19bdae3c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - - - function () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/test.json deleted file mode 100644 index 0cf2ce7dbb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/fallback-non-payable-without-selector/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/c.sol deleted file mode 100644 index 7dc26f1a01..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/test.json deleted file mode 100644 index aa05c48e86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/function-non-payable/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "params": [], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/c.sol deleted file mode 100644 index aa56cc0cfe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-array-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/c.sol deleted file mode 100644 index d1c800fe7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol deleted file mode 100644 index ebc3d4d060..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json deleted file mode 100644 index b42f4337a4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0, 0, 0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/c.sol deleted file mode 100644 index 07f50984ad..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - uint256[] a; - - function test(uint256 i) public - { - a.push(0); - a[i]; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/test.json deleted file mode 100644 index 760c99fa15..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-internal-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [1], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/c.sol deleted file mode 100644 index d721578c23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - uint256[] public a; - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/test.json deleted file mode 100644 index 647b1a9326..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/invalid-public-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "params": [0], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 7c26e04af6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index f27c435088..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - function test(bool b) m(b) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 1d1f96fccf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index bc482511ba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index 4e2034e74d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/c.sol deleted file mode 100644 index 6e7a871d49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/test.json deleted file mode 100644 index 3113e1f609..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/no-fallback-nor-selector/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/c.sol deleted file mode 100644 index aa56cc0cfe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-array-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index d1c800fe7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index ebc3d4d060..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json deleted file mode 100644 index 6c9ac4b106..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x1a804602", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 55c45e336a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - - - - - - - require(false, "req"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/test.json deleted file mode 100644 index a33715441b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/c.sol deleted file mode 100644 index cab45d9b61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - require(false); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/test.json deleted file mode 100644 index 8dc0068b24..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/require-without-message/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 0b77d43a5f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - assembly { - revert(0, 0) - } - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index d87f4cf7a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index 8fc475e921..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - address(this).send(1); - revert("r"); - } - - function () payable external { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index e25de31880..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index 37fea9a098..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - - revert("asd"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 4af6d776ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/c.sol deleted file mode 100644 index 458cd169e9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function () external { - revert(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/test.json deleted file mode 100644 index 74e6446e8c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message-in-fallback/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/c.sol deleted file mode 100644 index c917307168..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - function test() public { - - - revert(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/test.json deleted file mode 100644 index 253611b966..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/call-message/no-calls/revert-without-message/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/c.sol deleted file mode 100644 index f98c01bbd8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, address p13, uint p0, string memory p4, bool p8, address p14, uint p1, string memory p5, bool p9 - ) public { - console.log(p12, p13); - console.log(p12, p13, p0); - console.log(p12, p13, p4); - console.log(p12, p13, p8); - console.log(p12, p13, p14); - console.log(p12, p13, p0, p1); - console.log(p12, p13, p0, p4); - console.log(p12, p13, p0, p8); - console.log(p12, p13, p0, p14); - console.log(p12, p13, p4, p0); - console.log(p12, p13, p4, p5); - console.log(p12, p13, p4, p8); - console.log(p12, p13, p4, p14); - console.log(p12, p13, p8, p0); - console.log(p12, p13, p8, p4); - console.log(p12, p13, p8, p9); - console.log(p12, p13, p8, p14); - console.log(p12, p13, p14, p0); - console.log(p12, p13, p14, p4); - console.log(p12, p13, p14, p8); - console.log(p12, p13, p14, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/test.json deleted file mode 100644 index 09b833fffb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/address/test.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000003", - 2, - "string2", - false - ], - "consoleLogs": [ - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/c.sol deleted file mode 100644 index dcce92a8b0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, bool p8, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p12, p8); - console.log(p12, p8, p0); - console.log(p12, p8, p4); - console.log(p12, p8, p9); - console.log(p12, p8, p13); - console.log(p12, p8, p0, p1); - console.log(p12, p8, p0, p4); - console.log(p12, p8, p0, p9); - console.log(p12, p8, p0, p13); - console.log(p12, p8, p4, p0); - console.log(p12, p8, p4, p5); - console.log(p12, p8, p4, p9); - console.log(p12, p8, p4, p13); - console.log(p12, p8, p9, p0); - console.log(p12, p8, p9, p4); - console.log(p12, p8, p9, p10); - console.log(p12, p8, p9, p13); - console.log(p12, p8, p13, p0); - console.log(p12, p8, p13, p4); - console.log(p12, p8, p13, p9); - console.log(p12, p8, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/test.json deleted file mode 100644 index 6ce83ccdba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/bool/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - false, - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "false"], - ["0x0000000000000000000000000000000000000001", "false", "1"], - ["0x0000000000000000000000000000000000000001", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "1", "2"], - ["0x0000000000000000000000000000000000000001", "false", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "string1", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "true" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/c.sol deleted file mode 100644 index 2cfa06b929..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, string memory p4, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p12, p4); - console.log(p12, p4, p0); - console.log(p12, p4, p5); - console.log(p12, p4, p8); - console.log(p12, p4, p13); - console.log(p12, p4, p0, p1); - console.log(p12, p4, p0, p5); - console.log(p12, p4, p0, p8); - console.log(p12, p4, p0, p13); - console.log(p12, p4, p5, p0); - console.log(p12, p4, p5, p6); - console.log(p12, p4, p5, p8); - console.log(p12, p4, p5, p13); - console.log(p12, p4, p8, p0); - console.log(p12, p4, p8, p5); - console.log(p12, p4, p8, p9); - console.log(p12, p4, p8, p13); - console.log(p12, p4, p13, p0); - console.log(p12, p4, p13, p5); - console.log(p12, p4, p13, p8); - console.log(p12, p4, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/test.json deleted file mode 100644 index 59df3da678..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/string/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "string1"], - ["0x0000000000000000000000000000000000000001", "string1", "1"], - ["0x0000000000000000000000000000000000000001", "string1", "string2"], - ["0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "string3" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/c.sol deleted file mode 100644 index 862d643897..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, uint p0, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p12, p0); - console.log(p12, p0, p1); - console.log(p12, p0, p4); - console.log(p12, p0, p8); - console.log(p12, p0, p13); - console.log(p12, p0, p1, p2); - console.log(p12, p0, p1, p4); - console.log(p12, p0, p1, p8); - console.log(p12, p0, p1, p13); - console.log(p12, p0, p4, p1); - console.log(p12, p0, p4, p5); - console.log(p12, p0, p4, p8); - console.log(p12, p0, p4, p13); - console.log(p12, p0, p8, p1); - console.log(p12, p0, p8, p4); - console.log(p12, p0, p8, p9); - console.log(p12, p0, p8, p13); - console.log(p12, p0, p13, p1); - console.log(p12, p0, p13, p4); - console.log(p12, p0, p13, p8); - console.log(p12, p0, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/test.json deleted file mode 100644 index fd89352f65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/address/uint/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "1"], - ["0x0000000000000000000000000000000000000001", "1", "2"], - ["0x0000000000000000000000000000000000000001", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "2", "3"], - ["0x0000000000000000000000000000000000000001", "1", "2", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "2", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "false", "2"], - ["0x0000000000000000000000000000000000000001", "1", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/c.sol deleted file mode 100644 index d26f3cea51..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, address p12, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p8, p12); - console.log(p8, p12, p0); - console.log(p8, p12, p4); - console.log(p8, p12, p9); - console.log(p8, p12, p13); - console.log(p8, p12, p0, p1); - console.log(p8, p12, p0, p4); - console.log(p8, p12, p0, p9); - console.log(p8, p12, p0, p13); - console.log(p8, p12, p4, p0); - console.log(p8, p12, p4, p5); - console.log(p8, p12, p4, p9); - console.log(p8, p12, p4, p13); - console.log(p8, p12, p9, p0); - console.log(p8, p12, p9, p4); - console.log(p8, p12, p9, p10); - console.log(p8, p12, p9, p13); - console.log(p8, p12, p13, p0); - console.log(p8, p12, p13, p4); - console.log(p8, p12, p13, p9); - console.log(p8, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/test.json deleted file mode 100644 index 1173a8deba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/address/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "0x0000000000000000000000000000000000000001", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["false", "0x0000000000000000000000000000000000000001"], - ["false", "0x0000000000000000000000000000000000000001", "1"], - ["false", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "1", "2"], - ["false", "0x0000000000000000000000000000000000000001", "1", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "string1", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "true" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/c.sol deleted file mode 100644 index 0662eabfc5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, bool p9, uint p0, string memory p4, bool p10, address p12, uint p1, string memory p5, bool p11, address p13 - ) public { - console.log(p8, p9); - console.log(p8, p9, p0); - console.log(p8, p9, p4); - console.log(p8, p9, p10); - console.log(p8, p9, p12); - console.log(p8, p9, p0, p1); - console.log(p8, p9, p0, p4); - console.log(p8, p9, p0, p10); - console.log(p8, p9, p0, p12); - console.log(p8, p9, p4, p0); - console.log(p8, p9, p4, p5); - console.log(p8, p9, p4, p10); - console.log(p8, p9, p4, p12); - console.log(p8, p9, p10, p0); - console.log(p8, p9, p10, p4); - console.log(p8, p9, p10, p11); - console.log(p8, p9, p10, p12); - console.log(p8, p9, p12, p0); - console.log(p8, p9, p12, p4); - console.log(p8, p9, p12, p10); - console.log(p8, p9, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/test.json deleted file mode 100644 index 20fa99d1f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - false, - 1, - "string1", - true, - "0x0000000000000000000000000000000000000001", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "false"], - ["false", "false", "1"], - ["false", "false", "string1"], - ["false", "false", "true"], - ["false", "false", "0x0000000000000000000000000000000000000001"], - ["false", "false", "1", "2"], - ["false", "false", "1", "string1"], - ["false", "false", "1", "true"], - ["false", "false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "false", "string1", "1"], - ["false", "false", "string1", "string2"], - ["false", "false", "string1", "true"], - [ - "false", - "false", - "string1", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "true", "1"], - ["false", "false", "true", "string1"], - ["false", "false", "true", "false"], - [ - "false", - "false", - "true", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "string1" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "true" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/c.sol deleted file mode 100644 index 3dda808dcc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, string memory p4, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p8, p4); - console.log(p8, p4, p0); - console.log(p8, p4, p5); - console.log(p8, p4, p9); - console.log(p8, p4, p12); - console.log(p8, p4, p0, p1); - console.log(p8, p4, p0, p5); - console.log(p8, p4, p0, p9); - console.log(p8, p4, p0, p12); - console.log(p8, p4, p5, p0); - console.log(p8, p4, p5, p6); - console.log(p8, p4, p5, p9); - console.log(p8, p4, p5, p12); - console.log(p8, p4, p9, p0); - console.log(p8, p4, p9, p5); - console.log(p8, p4, p9, p10); - console.log(p8, p4, p9, p12); - console.log(p8, p4, p12, p0); - console.log(p8, p4, p12, p5); - console.log(p8, p4, p12, p9); - console.log(p8, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/test.json deleted file mode 100644 index 9d49738b23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/string/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "string1"], - ["false", "string1", "1"], - ["false", "string1", "string2"], - ["false", "string1", "false"], - ["false", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "1", "2"], - ["false", "string1", "1", "string2"], - ["false", "string1", "1", "false"], - ["false", "string1", "1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "string2", "1"], - ["false", "string1", "string2", "string3"], - ["false", "string1", "string2", "false"], - [ - "false", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "false", "1"], - ["false", "string1", "false", "string2"], - ["false", "string1", "false", "true"], - [ - "false", - "string1", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/c.sol deleted file mode 100644 index 27fecbf7c6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, uint p0, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p8, p0); - console.log(p8, p0, p1); - console.log(p8, p0, p4); - console.log(p8, p0, p9); - console.log(p8, p0, p12); - console.log(p8, p0, p1, p2); - console.log(p8, p0, p1, p4); - console.log(p8, p0, p1, p9); - console.log(p8, p0, p1, p12); - console.log(p8, p0, p4, p1); - console.log(p8, p0, p4, p5); - console.log(p8, p0, p4, p9); - console.log(p8, p0, p4, p12); - console.log(p8, p0, p9, p1); - console.log(p8, p0, p9, p4); - console.log(p8, p0, p9, p10); - console.log(p8, p0, p9, p12); - console.log(p8, p0, p12, p1); - console.log(p8, p0, p12, p4); - console.log(p8, p0, p12, p9); - console.log(p8, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/test.json deleted file mode 100644 index 0b83cdc2ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/bool/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "1"], - ["false", "1", "2"], - ["false", "1", "string1"], - ["false", "1", "false"], - ["false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "2", "3"], - ["false", "1", "2", "string1"], - ["false", "1", "2", "false"], - ["false", "1", "2", "0x0000000000000000000000000000000000000001"], - ["false", "1", "string1", "2"], - ["false", "1", "string1", "string2"], - ["false", "1", "string1", "false"], - ["false", "1", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "false", "2"], - ["false", "1", "false", "string1"], - ["false", "1", "false", "true"], - ["false", "1", "false", "0x0000000000000000000000000000000000000001"], - ["false", "1", "0x0000000000000000000000000000000000000001", "2"], - ["false", "1", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/c.sol deleted file mode 100644 index 66ea8d9a48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/test.json deleted file mode 100644 index 9f3eb46f5b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/not-reverting/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it doesn't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/c.sol deleted file mode 100644 index 49eba27575..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - revert(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/test.json deleted file mode 100644 index 712dbc0050..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/contract-creation/reverting/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it reverts", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/c.sol deleted file mode 100644 index 07f99a7275..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test(bool b) public { - console.log("string1"); - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/test.json deleted file mode 100644 index bbf9da1d79..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/assert/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["string1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/c.sol deleted file mode 100644 index 5745ce75a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test() public { - console.log(1); - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/test.json deleted file mode 100644 index 2a9abc0b70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/error/revert/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/c.sol deleted file mode 100644 index 9abc88635a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract D { - constructor() public { - console.log("D"); - } -} - -contract C { - - constructor() public { - console.log("C1"); - new D(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/test.json deleted file mode 100644 index 2be7464f87..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/multiple-creates/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log of other contracts in their constructor", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/c.sol deleted file mode 100644 index 3c06a8fd7f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/test.json deleted file mode 100644 index cdda420be8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/not-reverting/test.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they don't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/c.sol deleted file mode 100644 index f1314e54f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - revert(); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/test.json deleted file mode 100644 index ddccb5c54c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/multiple-messages/reverting/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"]], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "f", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/c.sol deleted file mode 100644 index 4dab21f452..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../console.sol"; - -contract C { - - function log() public { - console.log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/test.json deleted file mode 100644 index 0b53a189fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/no-params/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [[]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/c.sol deleted file mode 100644 index d433658de7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes10 p24, bytes11 p25, bytes12 p26, bytes13 p27, bytes14 p28, bytes15 p29, - bytes16 p30, bytes17 p31, bytes18 p32, bytes19 p33, bytes20 p34, bytes21 p35 - ) public { - console.logBytes10(p24); - console.logBytes11(p25); - console.logBytes12(p26); - console.logBytes13(p27); - console.logBytes14(p28); - console.logBytes15(p29); - console.logBytes16(p30); - console.logBytes17(p31); - console.logBytes18(p32); - console.logBytes19(p33); - console.logBytes20(p34); - console.logBytes21(p35); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/test.json deleted file mode 100644 index b392db37fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes10-bytes21/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000010", - "0x0000000000000000000011", - "0x000000000000000000000012", - "0x00000000000000000000000013", - "0x0000000000000000000000000014", - "0x000000000000000000000000000015", - "0x00000000000000000000000000000016", - "0x0000000000000000000000000000000017", - "0x000000000000000000000000000000000018", - "0x00000000000000000000000000000000000019", - "0x0000000000000000000000000000000000000020", - "0x000000000000000000000000000000000000000021" - ], - "consoleLogs": [ - ["0x00000000000000000010"], - ["0x0000000000000000000011"], - ["0x000000000000000000000012"], - ["0x00000000000000000000000013"], - ["0x0000000000000000000000000014"], - ["0x000000000000000000000000000015"], - ["0x00000000000000000000000000000016"], - ["0x0000000000000000000000000000000017"], - ["0x000000000000000000000000000000000018"], - ["0x00000000000000000000000000000000000019"], - ["0x0000000000000000000000000000000000000020"], - ["0x000000000000000000000000000000000000000021"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/c.sol deleted file mode 100644 index ab527bb7d2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes22 p36, bytes23 p37, bytes24 p38, bytes25 p39, bytes26 p40, bytes27 p41, - bytes28 p42, bytes29 p43, bytes30 p44, bytes31 p45, bytes32 p46 - ) public { - console.logBytes22(p36); - console.logBytes23(p37); - console.logBytes24(p38); - console.logBytes25(p39); - console.logBytes26(p40); - console.logBytes27(p41); - console.logBytes28(p42); - console.logBytes29(p43); - console.logBytes30(p44); - console.logBytes31(p45); - console.logBytes32(p46); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/test.json deleted file mode 100644 index 3882ae2b3e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/bytes22-bytes32/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000000000000000000000000000022", - "0x0000000000000000000000000000000000000000000023", - "0x000000000000000000000000000000000000000000000024", - "0x00000000000000000000000000000000000000000000000025", - "0x0000000000000000000000000000000000000000000000000026", - "0x000000000000000000000000000000000000000000000000000027", - "0x00000000000000000000000000000000000000000000000000000028", - "0x0000000000000000000000000000000000000000000000000000000029", - "0x000000000000000000000000000000000000000000000000000000000030", - "0x00000000000000000000000000000000000000000000000000000000000031", - "0x0000000000000000000000000000000000000000000000000000000000000032" - ], - "consoleLogs": [ - ["0x00000000000000000000000000000000000000000022"], - ["0x0000000000000000000000000000000000000000000023"], - ["0x000000000000000000000000000000000000000000000024"], - ["0x00000000000000000000000000000000000000000000000025"], - ["0x0000000000000000000000000000000000000000000000000026"], - ["0x000000000000000000000000000000000000000000000000000027"], - ["0x00000000000000000000000000000000000000000000000000000028"], - ["0x0000000000000000000000000000000000000000000000000000000029"], - ["0x000000000000000000000000000000000000000000000000000000000030"], - ["0x00000000000000000000000000000000000000000000000000000000000031"], - ["0x0000000000000000000000000000000000000000000000000000000000000032"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/c.sol deleted file mode 100644 index b8e6bb5fdd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, bool p8, address p12, int p13, bytes memory p14, bytes1 p15, bytes2 p16, - bytes3 p17, bytes4 p18, bytes5 p19, bytes6 p20, bytes7 p21, bytes8 p22, bytes9 p23 - ) public { - console.logUint(p0); - console.logString(p4); - console.logBool(p8); - console.logAddress(p12); - console.logInt(p13); - console.logBytes(p14); - console.logBytes1(p15); - console.logBytes2(p16); - console.logBytes3(p17); - console.logBytes4(p18); - console.logBytes5(p19); - console.logBytes6(p20); - console.logBytes7(p21); - console.logBytes8(p22); - console.logBytes9(p23); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/test.json deleted file mode 100644 index dfcc39185a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/single-log/uint-bytes9/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - false, - "0x0000000000000000000000000000000000000001", - -1, - [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 - ], - "0x01", - "0x002", - "0x000003", - "0x00000004", - "0x0000000005", - "0x000000000006", - "0x00000000000007", - "0x0000000000000008", - "0x000000000000000009" - ], - "consoleLogs": [ - ["1"], - ["string1"], - ["false"], - ["0x0000000000000000000000000000000000000001"], - ["-1"], - [ - "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001" - ], - ["0x01"], - ["0x0002"], - ["0x000003"], - ["0x00000004"], - ["0x0000000005"], - ["0x000000000006"], - ["0x00000000000007"], - ["0x0000000000000008"], - ["0x000000000000000009"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/c.sol deleted file mode 100644 index e01de3fbea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, address p12, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p4, p12); - console.log(p4, p12, p0); - console.log(p4, p12, p5); - console.log(p4, p12, p8); - console.log(p4, p12, p13); - console.log(p4, p12, p0, p1); - console.log(p4, p12, p0, p5); - console.log(p4, p12, p0, p8); - console.log(p4, p12, p0, p13); - console.log(p4, p12, p5, p0); - console.log(p4, p12, p5, p6); - console.log(p4, p12, p5, p8); - console.log(p4, p12, p5, p13); - console.log(p4, p12, p8, p0); - console.log(p4, p12, p8, p5); - console.log(p4, p12, p8, p9); - console.log(p4, p12, p8, p13); - console.log(p4, p12, p13, p0); - console.log(p4, p12, p13, p5); - console.log(p4, p12, p13, p8); - console.log(p4, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/test.json deleted file mode 100644 index 7cfae84d03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/address/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "0x0000000000000000000000000000000000000001", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["string1", "0x0000000000000000000000000000000000000001"], - ["string1", "0x0000000000000000000000000000000000000001", "1"], - ["string1", "0x0000000000000000000000000000000000000001", "string2"], - ["string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "2"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "string2" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "string3" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/c.sol deleted file mode 100644 index e5a2998099..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, bool p8, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p4, p8); - console.log(p4, p8, p0); - console.log(p4, p8, p5); - console.log(p4, p8, p9); - console.log(p4, p8, p12); - console.log(p4, p8, p0, p1); - console.log(p4, p8, p0, p5); - console.log(p4, p8, p0, p9); - console.log(p4, p8, p0, p12); - console.log(p4, p8, p5, p0); - console.log(p4, p8, p5, p6); - console.log(p4, p8, p5, p9); - console.log(p4, p8, p5, p12); - console.log(p4, p8, p9, p0); - console.log(p4, p8, p9, p5); - console.log(p4, p8, p9, p10); - console.log(p4, p8, p9, p12); - console.log(p4, p8, p12, p0); - console.log(p4, p8, p12, p5); - console.log(p4, p8, p12, p9); - console.log(p4, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/test.json deleted file mode 100644 index 652225f26f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - false, - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "false"], - ["string1", "false", "1"], - ["string1", "false", "string2"], - ["string1", "false", "false"], - ["string1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "1", "2"], - ["string1", "false", "1", "string2"], - ["string1", "false", "1", "false"], - ["string1", "false", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "string2", "1"], - ["string1", "false", "string2", "string3"], - ["string1", "false", "string2", "false"], - [ - "string1", - "false", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "false", "1"], - ["string1", "false", "false", "string2"], - ["string1", "false", "false", "true"], - [ - "string1", - "false", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/c.sol deleted file mode 100644 index 71155662bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, string memory p5, uint p0, string memory p6, bool p8, address p12, uint p1, string memory p7, bool p9, address p13 - ) public { - console.log(p4, p5); - console.log(p4, p5, p0); - console.log(p4, p5, p6); - console.log(p4, p5, p8); - console.log(p4, p5, p12); - console.log(p4, p5, p0, p1); - console.log(p4, p5, p0, p6); - console.log(p4, p5, p0, p8); - console.log(p4, p5, p0, p12); - console.log(p4, p5, p6, p0); - console.log(p4, p5, p6, p7); - console.log(p4, p5, p6, p8); - console.log(p4, p5, p6, p12); - console.log(p4, p5, p8, p0); - console.log(p4, p5, p8, p6); - console.log(p4, p5, p8, p9); - console.log(p4, p5, p8, p12); - console.log(p4, p5, p12, p0); - console.log(p4, p5, p12, p6); - console.log(p4, p5, p12, p8); - console.log(p4, p5, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/test.json deleted file mode 100644 index dc79bd77fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/string/test.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "string2", - 1, - "string3", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string4", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "string2"], - ["string1", "string2", "1"], - ["string1", "string2", "string3"], - ["string1", "string2", "false"], - ["string1", "string2", "0x0000000000000000000000000000000000000001"], - ["string1", "string2", "1", "2"], - ["string1", "string2", "1", "string3"], - ["string1", "string2", "1", "false"], - [ - "string1", - "string2", - "1", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "string3", "1"], - ["string1", "string2", "string3", "string4"], - ["string1", "string2", "string3", "false"], - [ - "string1", - "string2", - "string3", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "false", "1"], - ["string1", "string2", "false", "string3"], - ["string1", "string2", "false", "false"], - [ - "string1", - "string2", - "false", - "0x0000000000000000000000000000000000000001" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "1" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "string3" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/c.sol deleted file mode 100644 index 6e9e47136e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, uint p0, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p4, p0); - console.log(p4, p0, p1); - console.log(p4, p0, p5); - console.log(p4, p0, p8); - console.log(p4, p0, p12); - console.log(p4, p0, p1, p2); - console.log(p4, p0, p1, p5); - console.log(p4, p0, p1, p8); - console.log(p4, p0, p1, p12); - console.log(p4, p0, p5, p1); - console.log(p4, p0, p5, p6); - console.log(p4, p0, p5, p8); - console.log(p4, p0, p5, p12); - console.log(p4, p0, p8, p1); - console.log(p4, p0, p8, p5); - console.log(p4, p0, p8, p9); - console.log(p4, p0, p8, p12); - console.log(p4, p0, p12, p1); - console.log(p4, p0, p12, p5); - console.log(p4, p0, p12, p8); - console.log(p4, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/test.json deleted file mode 100644 index 5d1961f8bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/string/uint/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - 1, - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "1"], - ["string1", "1", "2"], - ["string1", "1", "string2"], - ["string1", "1", "false"], - ["string1", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "2", "3"], - ["string1", "1", "2", "string2"], - ["string1", "1", "2", "false"], - ["string1", "1", "2", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "string2", "2"], - ["string1", "1", "string2", "string3"], - ["string1", "1", "string2", "false"], - [ - "string1", - "1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "1", "false", "2"], - ["string1", "1", "false", "string2"], - ["string1", "1", "false", "false"], - ["string1", "1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "0x0000000000000000000000000000000000000001", "2"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["string1", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/c.sol deleted file mode 100644 index 74fd490852..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, address p12, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p0, p12); - console.log(p0, p12, p1); - console.log(p0, p12, p4); - console.log(p0, p12, p8); - console.log(p0, p12, p13); - console.log(p0, p12, p1, p2); - console.log(p0, p12, p1, p4); - console.log(p0, p12, p1, p8); - console.log(p0, p12, p1, p13); - console.log(p0, p12, p4, p1); - console.log(p0, p12, p4, p5); - console.log(p0, p12, p4, p8); - console.log(p0, p12, p4, p13); - console.log(p0, p12, p8, p1); - console.log(p0, p12, p8, p4); - console.log(p0, p12, p8, p9); - console.log(p0, p12, p8, p13); - console.log(p0, p12, p13, p1); - console.log(p0, p12, p13, p4); - console.log(p0, p12, p13, p8); - console.log(p0, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/test.json deleted file mode 100644 index 82472306cd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/address/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "0x0000000000000000000000000000000000000001", - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["1", "0x0000000000000000000000000000000000000001"], - ["1", "0x0000000000000000000000000000000000000001", "2"], - ["1", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "2", "3"], - ["1", "0x0000000000000000000000000000000000000001", "2", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "2", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "2"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "false", "2"], - ["1", "0x0000000000000000000000000000000000000001", "false", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/c.sol deleted file mode 100644 index 2a1484039d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, bool p8, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p0, p8); - console.log(p0, p8, p1); - console.log(p0, p8, p4); - console.log(p0, p8, p9); - console.log(p0, p8, p12); - console.log(p0, p8, p1, p2); - console.log(p0, p8, p1, p4); - console.log(p0, p8, p1, p9); - console.log(p0, p8, p1, p12); - console.log(p0, p8, p4, p1); - console.log(p0, p8, p4, p5); - console.log(p0, p8, p4, p9); - console.log(p0, p8, p4, p12); - console.log(p0, p8, p9, p1); - console.log(p0, p8, p9, p4); - console.log(p0, p8, p9, p10); - console.log(p0, p8, p9, p12); - console.log(p0, p8, p12, p1); - console.log(p0, p8, p12, p4); - console.log(p0, p8, p12, p9); - console.log(p0, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/test.json deleted file mode 100644 index 794182376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/bool/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - false, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "false"], - ["1", "false", "2"], - ["1", "false", "string1"], - ["1", "false", "false"], - ["1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "2", "3"], - ["1", "false", "2", "string1"], - ["1", "false", "2", "false"], - ["1", "false", "2", "0x0000000000000000000000000000000000000001"], - ["1", "false", "string1", "2"], - ["1", "false", "string1", "string2"], - ["1", "false", "string1", "false"], - ["1", "false", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "false", "false", "2"], - ["1", "false", "false", "string1"], - ["1", "false", "false", "true"], - ["1", "false", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "0x0000000000000000000000000000000000000001", "2"], - ["1", "false", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "false", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/c.sol deleted file mode 100644 index d8ba520fe9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint256 p0, uint256 p1, int256 p2, int256 p3 - ) public { - console.log(p0); - console.log(p1); - console.logInt(p2); - console.logInt(p3); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/test.json deleted file mode 100644 index d4d2a2d767..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/most-significant-bit-set/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "description": "Should correctly interpret sign of integer types", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000", - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000" - ], - "consoleLogs": [ - [ - "115792089237316195423570985008687907853269984665640564039457584007913129639935" - ], - [ - "57896044618658097711785492504343953926634992332820282019728792003956564819968" - ], - ["-1"], - [ - "-57896044618658097711785492504343953926634992332820282019728792003956564819968" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/c.sol deleted file mode 100644 index 14b5c2ad59..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p0, p4); - console.log(p0, p4, p1); - console.log(p0, p4, p5); - console.log(p0, p4, p8); - console.log(p0, p4, p12); - console.log(p0, p4, p1, p2); - console.log(p0, p4, p1, p5); - console.log(p0, p4, p1, p8); - console.log(p0, p4, p1, p12); - console.log(p0, p4, p5, p1); - console.log(p0, p4, p5, p6); - console.log(p0, p4, p5, p8); - console.log(p0, p4, p5, p12); - console.log(p0, p4, p8, p1); - console.log(p0, p4, p8, p5); - console.log(p0, p4, p8, p9); - console.log(p0, p4, p8, p12); - console.log(p0, p4, p12, p1); - console.log(p0, p4, p12, p5); - console.log(p0, p4, p12, p8); - console.log(p0, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/test.json deleted file mode 100644 index 43e758b1ef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/string/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "string1"], - ["1", "string1", "2"], - ["1", "string1", "string2"], - ["1", "string1", "false"], - ["1", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "2", "3"], - ["1", "string1", "2", "string2"], - ["1", "string1", "2", "false"], - ["1", "string1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "string2", "2"], - ["1", "string1", "string2", "string3"], - ["1", "string1", "string2", "false"], - [ - "1", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["1", "string1", "false", "2"], - ["1", "string1", "false", "string2"], - ["1", "string1", "false", "false"], - ["1", "string1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "0x0000000000000000000000000000000000000001", "2"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["1", "string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/c.sol deleted file mode 100644 index 22c7916e1e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, uint p1, uint p2, string memory p4, bool p8, address p12, uint p3, string memory p5, bool p9, address p13 - ) public { - console.log(p0, p1); - console.log(p0, p1, p2); - console.log(p0, p1, p4); - console.log(p0, p1, p8); - console.log(p0, p1, p12); - console.log(p0, p1, p2, p3); - console.log(p0, p1, p2, p4); - console.log(p0, p1, p2, p8); - console.log(p0, p1, p2, p12); - console.log(p0, p1, p4, p2); - console.log(p0, p1, p4, p5); - console.log(p0, p1, p4, p8); - console.log(p0, p1, p4, p12); - console.log(p0, p1, p8, p2); - console.log(p0, p1, p8, p4); - console.log(p0, p1, p8, p9); - console.log(p0, p1, p8, p12); - console.log(p0, p1, p12, p2); - console.log(p0, p1, p12, p4); - console.log(p0, p1, p12, p8); - console.log(p0, p1, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/test.json deleted file mode 100644 index 9acbf9a04b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/console-logs/uint/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - 2, - 3, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 4, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "2"], - ["1", "2", "3"], - ["1", "2", "string1"], - ["1", "2", "false"], - ["1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "2", "3", "4"], - ["1", "2", "3", "string1"], - ["1", "2", "3", "false"], - ["1", "2", "3", "0x0000000000000000000000000000000000000001"], - ["1", "2", "string1", "3"], - ["1", "2", "string1", "string2"], - ["1", "2", "string1", "false"], - ["1", "2", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "2", "false", "3"], - ["1", "2", "false", "string1"], - ["1", "2", "false", "false"], - ["1", "2", "false", "0x0000000000000000000000000000000000000001"], - ["1", "2", "0x0000000000000000000000000000000000000001", "3"], - ["1", "2", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "2", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 0bc2cfa4e9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index c8fd11a87e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 300e5f46af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index 6cb3e62e9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 0bca8835dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 4f776d70dd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index e2a0d48013..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 06435e4f73..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - IgnoredL.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 7996e5cd9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 54203c026a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 0bca8835dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index 1e48e6e2c9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index ec13589438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index 7f662ca785..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index 1c88044480..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b231c7e894..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index 7f662ca785..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index 532de99397..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 8a525b42e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index 7f662ca785..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 9b9b507fc1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index c72ba9382f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index 5cb0e54e86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - function f() public { - } -} - -contract C { - - constructor() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0d71810f4d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index de9e2db191..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index c473a1e37d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/c.sol deleted file mode 100644 index 70283b0a3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/test.json deleted file mode 100644 index 05d2df376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1 - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index 3739551d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index e0a88ecf1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/test.json deleted file mode 100644 index 9c44caf79f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index d63878c771..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/test.json deleted file mode 100644 index d6fef271d2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index d63878c771..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index 03dd0d6032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index b44884e089..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol deleted file mode 100644 index 0ef3ca5e90..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - d.fail(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol deleted file mode 100644 index 07470615de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - function fail() public { - revert("d"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json deleted file mode 100644 index 72a40cd694..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol deleted file mode 100644 index 9439711ecb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol deleted file mode 100644 index 650aab43a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - - constructor() public { - revert("d"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json deleted file mode 100644 index 769cbff030..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol deleted file mode 100644 index 3dcfa87735..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol deleted file mode 100644 index 77cd1f47ea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - fail(b); - } - - function fail(bool b) public { - require(b); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json deleted file mode 100644 index 1f5824e46a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/c.sol deleted file mode 100644 index 3dcfa87735..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/d.sol deleted file mode 100644 index 3b06941db4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - require(b); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/test.json deleted file mode 100644 index 736f39027d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/multiple-constructor-one-fails/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/c.sol deleted file mode 100644 index 33232de1ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/d.sol deleted file mode 100644 index f0e63c2550..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor() public { - revert("D failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/test.json deleted file mode 100644 index 3b52decde0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-reverts/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol deleted file mode 100644 index 33232de1ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol deleted file mode 100644 index dfbc5b2039..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor() m public { - - } - - modifier m { - _; - fail(); - } - - function fail() internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json deleted file mode 100644 index e7fca1a8bd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol deleted file mode 100644 index 33232de1ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol deleted file mode 100644 index b0a9e98ecf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor() m public { - - } - - modifier m { - revert("D.m failed"); - _; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json deleted file mode 100644 index 299e3567ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "D.m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index 1344412168..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 1cf6a2cfaf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index c2f0b14bd2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index bb9d02af04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 95dbd49325..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 25bf5e4340..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index b6a27e560c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index 03707bb638..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index afb977a049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() private { - revert("private"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 096f86ddde..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index 2a79f51b8c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() public { - revert("public"); - } -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index ef49fbb2ac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index c86d54de7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/c.sol deleted file mode 100644 index 8e46a6216a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - assert(false); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/test.json deleted file mode 100644 index 896998f464..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/assert/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 419ecf58e7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - constructor(uint256 i) public - { - uint256 j = 123 / i; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 0874d4d947..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index a661d0fb50..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index a8e7dfa8db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/c.sol deleted file mode 100644 index 41ba2d1145..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - - -contract C { - - uint256[] a; - - constructor(uint256 i) public - { - a.push(0); - a[i]; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/test.json deleted file mode 100644 index cccd9082da..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/invalid-array-access/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [1], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index b6dbee1f6f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index 28a34dfc44..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - constructor(bool b) m(b) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 6831cc0ab3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 7869914d5f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index 67d60e6d9d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 544e63da0c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - - - - - - - require(false, "req"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/test.json deleted file mode 100644 index e45e625f9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/c.sol deleted file mode 100644 index 2dcb4cf88e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - require(false); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/test.json deleted file mode 100644 index 0367fc44ce..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/require-without-message/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 042df6ca54..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - assembly { - revert(0, 0) - } - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index 8ab2e07a18..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index e716acad31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - address(this).send(1); - revert("r"); - } - - function () payable external { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index 79e10952cc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index 7007efca45..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - - revert("asd"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 19810db69a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/c.sol deleted file mode 100644 index 49363c215e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - - - revert(); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/test.json deleted file mode 100644 index 8f1b1d7278..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/revert-without-message/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 4868fd0311..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/c.sol deleted file mode 100644 index ee061fc96f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor() public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/send-value-to-nonpayable/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 4868fd0311..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/test.json deleted file mode 100644 index 58461c312a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "^0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/c.sol deleted file mode 100644 index 8baf52fd40..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) payable public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/test.json deleted file mode 100644 index 18af03f349..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args-and-value/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": "^0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/c.sol deleted file mode 100644 index 8baf52fd40..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) payable public { - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/test.json deleted file mode 100644 index 58461c312a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-after-0.5.9/payable-with-wrong-args/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "^0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 10e565fea7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) public { - require(i > 0, "req"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/test.json deleted file mode 100644 index b48eb19f1b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": "<0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/c.sol deleted file mode 100644 index 53e6c0c9b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) payable public { - require(i > 0, "req"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/test.json deleted file mode 100644 index 5e7c784bab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args-and-value/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "solc": "<0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/c.sol deleted file mode 100644 index 53e6c0c9b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract C { - - constructor(uint i) payable public { - require(i > 0, "req"); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/test.json deleted file mode 100644 index b48eb19f1b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/solc-before-0.5.9/payable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": "<0.5.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/c.sol deleted file mode 100644 index daf9eadda2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.5.0; - -contract IgnoredC { - - constructor() public { - assert(false); - } - -} \ No newline at end of file diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/test.json deleted file mode 100644 index 5230fb77cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/create-message/no-calls/unrecognized-failure/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_ERROR" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/c.sol deleted file mode 100644 index 23d078cbd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.5.0; - -import "./d.sol"; - -contract E { - constructor() public { - revert("E"); - } -} - - -contract C is D, E { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/d.sol deleted file mode 100644 index 115b7a36ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -contract D { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/test.json deleted file mode 100644 index e150806204..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/different-contracts-same-deployment-bytecode/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "description": "Should clash create bytecodes and resolve to D", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C and D have the same deployment bytecode because they always fail and get recognized as D", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/c.sol deleted file mode 100644 index 6738b496a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.5.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function proxyMessageCall(function (uint256) external returns (uint256) aFunction, uint256 aParameter) public returns (uint256) { - return aFunction(aParameter); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_5/special-cases/function-type-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/c.sol deleted file mode 100644 index 9fdd1863d0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "./d.sol"; - -contract C { - function test() public { - D d = new D(); - - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/d.sol deleted file mode 100644 index c221297b3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -contract D { - struct MyStruct { - uint x; - uint y; - } - - function fail() public returns (MyStruct[] memory) - { - revert("D failed"); - - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/test.json deleted file mode 100644 index a0403282cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/call-failing-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/c.sol deleted file mode 100644 index 1666df80f7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -contract C is D { - function test() public override returns (MyStruct[] memory) { - MyStruct[] memory structs = super.test(); - console.log(structs[1].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/d.sol deleted file mode 100644 index 8acd08d8b5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -struct MyStruct { - uint x; - uint y; -} - -contract D { - function test() public virtual returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0].x = 1; - structs[1].x = 2; - console.log(structs[0].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/test.json deleted file mode 100644 index 8249b806f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/inherits-returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [], - "consoleLogs": [["1"], ["2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/c.sol deleted file mode 100644 index 563781116e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function doSomething(uint256[][] memory numbers) public returns (uint256) { - return numbers[0][0]; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/nested-arrays-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/c.sol deleted file mode 100644 index 90416c0453..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -struct MyStruct { - uint x; - uint y; -} - -contract C { - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/test.json deleted file mode 100644 index a9e57fd743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/non-payable-returns-struct/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/c.sol deleted file mode 100644 index 5732eddcc6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.6.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - struct MyStruct { - address a; - } - - function log() public { - MyStruct[] memory ms = getStructs(); - console.log(ms[0].a); - } - - function getStructs() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(0x0000000000000000000000000000000000000001); - structs[1] = MyStruct(0x0000000000000000000000000000000000000002); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/test.json deleted file mode 100644 index b9555dcbda..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/abi-v2/returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [], - "consoleLogs": [["0x0000000000000000000000000000000000000001"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/c.sol deleted file mode 100644 index 0a2dfae3f5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - d.test2(); - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/d.sol deleted file mode 100644 index eea4d35a2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/test.json deleted file mode 100644 index c289401034..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/c.sol deleted file mode 100644 index e105f5742a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public payable { - D d = new D(); - - d.test2{value: 2}(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/d.sol deleted file mode 100644 index 01e1b7f446..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -import "./c.sol"; - -contract D { - - function test2() public payable { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/test.json deleted file mode 100644 index 03cea5ea4b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/call-with-value-without-funds/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.6.2", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/c.sol deleted file mode 100644 index 595948c7fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/d.sol deleted file mode 100644 index 032f34b8fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - constructor() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/test.json deleted file mode 100644 index d71e1c0655..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/contract-creation-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index ed80c42c17..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index e0c4968ade..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 92cfcf94c0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index bd468a347a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 5e7f9edb7b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index b016102dff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index 7c91cc4794..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/c.sol deleted file mode 100644 index 495f4ea0c4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - try d.fail() {} catch { - revert("C failed"); - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/d.sol deleted file mode 100644 index b016102dff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/test.json deleted file mode 100644 index 81bb96eaea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-try-catch/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/c.sol deleted file mode 100644 index 3be515cc4a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/d.sol deleted file mode 100644 index cb77ac63b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - uint immutable x = 11; - - function get2X () public returns (uint) { - return 2*x; - } - - function fail(uint arg) public returns (uint) { - revert("D failed"); - return x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/test.json deleted file mode 100644 index 2dec413add..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/forward-contract-with-immutable-failure/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "^0.6.5", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 4bb0b6a69f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 4a561b4c1f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 40fcde2bd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/c.sol deleted file mode 100644 index 4411d3825e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.5; - -contract C { - uint immutable x = 10; - - function get2X () public returns (uint) { - return 2*x; - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/test.json deleted file mode 100644 index 02122d97ff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/immutable-variable/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.6.5", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 5e7f9edb7b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index c5da9a6c76..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index fcefc18710..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index e17527b7db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index d6d8e3f9c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b188c07f2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index e17527b7db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index dc2701f7e8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 6903d2e256..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index e17527b7db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 2ca5c890f4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index cf6f0a2b3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index d4ced8c9ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - function f() public { - } -} - -contract C { - - function test() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0a47f8c5f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index b4d562f820..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index 7b04738e07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/c.sol deleted file mode 100644 index 3ad0f95735..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public { - r(); - } - - function r() internal { - revert("D failed"); - } -} - -contract C { - - function forward(address implementation) internal { - assembly { - calldatacopy(0, 0, calldatasize()) - let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) - returndatacopy(0, 0, returndatasize()) - switch result - case 0 { revert(0, returndatasize()) } - default { return(0, returndatasize()) } - } - } - - fallback () external payable { - D d = new D(); - forward(address(d)); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/test.json deleted file mode 100644 index 94ea8ade31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/proxy/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xa9cc4718", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 29 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "forward", - "line": 19 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "fail", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "r", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/c.sol deleted file mode 100644 index d25e45f877..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/test.json deleted file mode 100644 index 0eebb2e652..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index e557d7ee64..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index 472d919d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/test.json deleted file mode 100644 index e7b7de2410..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/c.sol deleted file mode 100644 index ba1c042268..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.6.5; - -contract C { - uint immutable x = 16448250; - address immutable a = 0xFEe9686eA76eCb04b8bB8E1AC29D7b1bCAeA283a; - bool immutable b = false; - - function get2X () public returns (uint) { - if (b) { - return 2*x; - } - } - - function getAddress() public returns (address) { - if (!b) { - return a; - } - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/test.json deleted file mode 100644 index 1d4e03d51e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/several-immutable-variables/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.6.5", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 21 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/c.sol deleted file mode 100644 index c7c0431b33..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - mapping(uint => uint) public x; - function internalFunction(mapping(uint => uint) storage m) internal pure { - revert(); - } - - function test() public { - internalFunction(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/test.json deleted file mode 100644 index b7d114ffe0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/storage-mapping-parameter/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": ">=0.6.5 <=0.6.8", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 10 - }, - "functionType": 1 - }, - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "function": "internalFunction", - "contract": "C", - "file": "c.sol", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index 55b0967443..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 9206a331cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index 55b0967443..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index f76d0f1c6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/c.sol deleted file mode 100644 index 63e8dcb9a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/c.sol +++ /dev/null @@ -1,21 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - try d.fail() {} catch { - d.test2(); - } - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/d.sol deleted file mode 100644 index eea4d35a2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/test.json deleted file mode 100644 index 53cabe3d05..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/try-catch-and-back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 14 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 19 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol deleted file mode 100644 index 783c3fcbd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol deleted file mode 100644 index 08fd9a2367..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; - -// Contracts starting with Ignored -// are ignored by the tracer -contract IgnoredD { - - function fail() public { - D d = new D(); - d.fail(); - } - -} - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json deleted file mode 100644 index 939334a8f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 17 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol deleted file mode 100644 index 783c3fcbd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol deleted file mode 100644 index 4d1bd60760..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract IgnoredD { - - function fail() public returns (uint) { - revert("IngoredD failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json deleted file mode 100644 index 83d7bb3471..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "IngoredD failed" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/c.sol deleted file mode 100644 index 594f6ef3a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/d.sol deleted file mode 100644 index a00581a621..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - fallback () external { - revert("inherited fallback"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/test.json deleted file mode 100644 index 27fbeb065e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited fallback", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/c.sol deleted file mode 100644 index 594f6ef3a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/d.sol deleted file mode 100644 index c1e31cd96f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - modifier fail { - revert("inherited function with modifier"); - _; - } - - function test() fail external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/test.json deleted file mode 100644 index b17a8fa09a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited function with modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/c.sol deleted file mode 100644 index 3b366f8bec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - - function test() fail external { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/d.sol deleted file mode 100644 index ac0bb2eba2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - modifier fail { - revert("inherited modifier"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/test.json deleted file mode 100644 index 683a3c985f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/c.sol deleted file mode 100644 index 594f6ef3a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/d.sol deleted file mode 100644 index 082246fa8d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - fallback () external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/test.json deleted file mode 100644 index 11f162917b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-fallback/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/c.sol deleted file mode 100644 index 594f6ef3a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/d.sol deleted file mode 100644 index 70992733eb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function test() external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/test.json deleted file mode 100644 index 205b5d6d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-nonpayable-function/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/c.sol deleted file mode 100644 index 594f6ef3a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/d.sol deleted file mode 100644 index a06415fb4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () external payable { - revert("inherited receive"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/test.json deleted file mode 100644 index a6950faaab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/inherited-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited receive", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/c.sol deleted file mode 100644 index f0aaccfcf4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/d.sol deleted file mode 100644 index 48071a833c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./e.sol"; - -contract D is E { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/e.sol deleted file mode 100644 index 0cdd2ae230..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/e.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract E { - - function test() public virtual { - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/test.json deleted file mode 100644 index 976bd39194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-skiping-parent/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "C", - "file": "e.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/c.sol deleted file mode 100644 index f0aaccfcf4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/d.sol deleted file mode 100644 index aa68a3c1a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function test() m public virtual { - } - - modifier m { - revert("m failed"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/test.json deleted file mode 100644 index 481e2c24a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call-with-modifier-failure/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/c.sol deleted file mode 100644 index f0aaccfcf4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/d.sol deleted file mode 100644 index 9bbfed2363..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function test() public virtual { - revert("failed from super"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/test.json deleted file mode 100644 index 0eb6ca4b9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/inheritance/super-call/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failed from super", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index 952be416b4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 9a44213375..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index 65a66f7484..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index 27dfceeba7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index da536e5322..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 1b5711a70d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/c.sol deleted file mode 100644 index 8db88d7c17..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/test.json deleted file mode 100644 index 382751c049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 8a3aba3b5c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index c232fb9665..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index 989ab0722b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 9e2b8d01a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index 06fcced20a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index 30972741e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index b0a6e08194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/c.sol deleted file mode 100644 index fe3c2244f6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(uint i) public { - if (i > 0) { - test(i - 1); - } - - revert("base case"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/test.json deleted file mode 100644 index 208b2804a0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/internal-calls/recursive-call/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [2], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "base case", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/c.sol deleted file mode 100644 index b16895d452..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(address payable a) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/test.json deleted file mode 100644 index 42c4c0f0f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/address-payable-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xbb29998e", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/c.sol deleted file mode 100644 index 8d71c56689..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - - - function test(bool b) public { - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/test.json deleted file mode 100644 index aa69202405..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/assert/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/c.sol deleted file mode 100644 index 696b122fbb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - function f() public returns (bool) { - return false; - } -} - -interface I { - function f() external returns (uint); -} - -contract C { - - function test() public { - fail(new D()); - } - - function fail(D d) public { - require(d.f(), "D.f returned false"); - } - - function fail2(I i) public { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/test.json deleted file mode 100644 index 9a39e71f4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/contract-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x0cad6d76", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail2", - "line": 23 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/c.sol deleted file mode 100644 index 1c7c754124..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/test.json deleted file mode 100644 index 8d1211b1d0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-existing-function/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "function": "f", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/c.sol deleted file mode 100644 index 253498016f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function f() internal returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/test.json deleted file mode 100644 index f2c17f5f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-internal-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/c.sol deleted file mode 100644 index 1c7c754124..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/test.json deleted file mode 100644 index df1d3fb945..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/direct-library-call-non-existing-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff1", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 6b2e4f3920..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - function test(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 4515494873..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/c.sol deleted file mode 100644 index a40b620661..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - enum E { - YES, - NO - } -} - -contract C is D { - - function test(E e) public { - assert(e == E.YES); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/test.json deleted file mode 100644 index c5fd0fa16d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/enum-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf1820bdc", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index c2cd0bfbbd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index 0574360fa8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/c.sol deleted file mode 100644 index 921adb9d3e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/test.json deleted file mode 100644 index 769d6143b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-with-selector/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/c.sol deleted file mode 100644 index b3d120a970..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/test.json deleted file mode 100644 index 5bc2c08114..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/fallback-non-payable-without-selector/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/c.sol deleted file mode 100644 index 11b9f392f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/test.json deleted file mode 100644 index aa05c48e86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/function-non-payable/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "params": [], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/c.sol deleted file mode 100644 index a20b3b0871..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-array-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/c.sol deleted file mode 100644 index 6ce3976302..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol deleted file mode 100644 index 9e8ff82bca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json deleted file mode 100644 index b42f4337a4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0, 0, 0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/c.sol deleted file mode 100644 index 96a6cfa9c6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - uint256[] a; - - function test(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/test.json deleted file mode 100644 index 760c99fa15..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-internal-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [1], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/c.sol deleted file mode 100644 index bbe9cb3c36..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - uint256[] public a; - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/test.json deleted file mode 100644 index 647b1a9326..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/invalid-public-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "params": [0], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 9bdd7ee156..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index 64952e035d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - function test(bool b) m(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 1d1f96fccf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 37325a30e5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index b91c30e7a2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - function test(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/c.sol deleted file mode 100644 index 950468c432..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/test.json deleted file mode 100644 index dbea0884fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/no-fallback-nor-selector/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/c.sol deleted file mode 100644 index a20b3b0871..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-array-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 6ce3976302..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 9e8ff82bca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json deleted file mode 100644 index 6c9ac4b106..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x1a804602", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 6c40513237..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/test.json deleted file mode 100644 index a33715441b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 0d1a657874..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index d87f4cf7a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index 43fd788a71..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - address(this).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index e25de31880..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/c.sol deleted file mode 100644 index 6093974b76..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/test.json deleted file mode 100644 index 79fc3db639..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/c.sol deleted file mode 100644 index 0103544469..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - receive () external payable { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/test.json deleted file mode 100644 index b6d3170449..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message-in-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index 5358383c44..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 4af6d776ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/call-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/c.sol deleted file mode 100644 index b6dbcb5c4a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, address p13, uint p0, string memory p4, bool p8, address p14, uint p1, string memory p5, bool p9 - ) public { - console.log(p12, p13); - console.log(p12, p13, p0); - console.log(p12, p13, p4); - console.log(p12, p13, p8); - console.log(p12, p13, p14); - console.log(p12, p13, p0, p1); - console.log(p12, p13, p0, p4); - console.log(p12, p13, p0, p8); - console.log(p12, p13, p0, p14); - console.log(p12, p13, p4, p0); - console.log(p12, p13, p4, p5); - console.log(p12, p13, p4, p8); - console.log(p12, p13, p4, p14); - console.log(p12, p13, p8, p0); - console.log(p12, p13, p8, p4); - console.log(p12, p13, p8, p9); - console.log(p12, p13, p8, p14); - console.log(p12, p13, p14, p0); - console.log(p12, p13, p14, p4); - console.log(p12, p13, p14, p8); - console.log(p12, p13, p14, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/test.json deleted file mode 100644 index 09b833fffb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/address/test.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000003", - 2, - "string2", - false - ], - "consoleLogs": [ - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/c.sol deleted file mode 100644 index d43f604798..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, bool p8, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p12, p8); - console.log(p12, p8, p0); - console.log(p12, p8, p4); - console.log(p12, p8, p9); - console.log(p12, p8, p13); - console.log(p12, p8, p0, p1); - console.log(p12, p8, p0, p4); - console.log(p12, p8, p0, p9); - console.log(p12, p8, p0, p13); - console.log(p12, p8, p4, p0); - console.log(p12, p8, p4, p5); - console.log(p12, p8, p4, p9); - console.log(p12, p8, p4, p13); - console.log(p12, p8, p9, p0); - console.log(p12, p8, p9, p4); - console.log(p12, p8, p9, p10); - console.log(p12, p8, p9, p13); - console.log(p12, p8, p13, p0); - console.log(p12, p8, p13, p4); - console.log(p12, p8, p13, p9); - console.log(p12, p8, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/test.json deleted file mode 100644 index 6ce83ccdba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/bool/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - false, - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "false"], - ["0x0000000000000000000000000000000000000001", "false", "1"], - ["0x0000000000000000000000000000000000000001", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "1", "2"], - ["0x0000000000000000000000000000000000000001", "false", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "string1", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "true" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/c.sol deleted file mode 100644 index fd21392e15..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, string memory p4, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p12, p4); - console.log(p12, p4, p0); - console.log(p12, p4, p5); - console.log(p12, p4, p8); - console.log(p12, p4, p13); - console.log(p12, p4, p0, p1); - console.log(p12, p4, p0, p5); - console.log(p12, p4, p0, p8); - console.log(p12, p4, p0, p13); - console.log(p12, p4, p5, p0); - console.log(p12, p4, p5, p6); - console.log(p12, p4, p5, p8); - console.log(p12, p4, p5, p13); - console.log(p12, p4, p8, p0); - console.log(p12, p4, p8, p5); - console.log(p12, p4, p8, p9); - console.log(p12, p4, p8, p13); - console.log(p12, p4, p13, p0); - console.log(p12, p4, p13, p5); - console.log(p12, p4, p13, p8); - console.log(p12, p4, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/test.json deleted file mode 100644 index 59df3da678..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/string/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "string1"], - ["0x0000000000000000000000000000000000000001", "string1", "1"], - ["0x0000000000000000000000000000000000000001", "string1", "string2"], - ["0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "string3" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/c.sol deleted file mode 100644 index 23b8d62f6d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, uint p0, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p12, p0); - console.log(p12, p0, p1); - console.log(p12, p0, p4); - console.log(p12, p0, p8); - console.log(p12, p0, p13); - console.log(p12, p0, p1, p2); - console.log(p12, p0, p1, p4); - console.log(p12, p0, p1, p8); - console.log(p12, p0, p1, p13); - console.log(p12, p0, p4, p1); - console.log(p12, p0, p4, p5); - console.log(p12, p0, p4, p8); - console.log(p12, p0, p4, p13); - console.log(p12, p0, p8, p1); - console.log(p12, p0, p8, p4); - console.log(p12, p0, p8, p9); - console.log(p12, p0, p8, p13); - console.log(p12, p0, p13, p1); - console.log(p12, p0, p13, p4); - console.log(p12, p0, p13, p8); - console.log(p12, p0, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/test.json deleted file mode 100644 index fd89352f65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/address/uint/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "1"], - ["0x0000000000000000000000000000000000000001", "1", "2"], - ["0x0000000000000000000000000000000000000001", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "2", "3"], - ["0x0000000000000000000000000000000000000001", "1", "2", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "2", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "false", "2"], - ["0x0000000000000000000000000000000000000001", "1", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/c.sol deleted file mode 100644 index ed76202f1c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, address p12, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p8, p12); - console.log(p8, p12, p0); - console.log(p8, p12, p4); - console.log(p8, p12, p9); - console.log(p8, p12, p13); - console.log(p8, p12, p0, p1); - console.log(p8, p12, p0, p4); - console.log(p8, p12, p0, p9); - console.log(p8, p12, p0, p13); - console.log(p8, p12, p4, p0); - console.log(p8, p12, p4, p5); - console.log(p8, p12, p4, p9); - console.log(p8, p12, p4, p13); - console.log(p8, p12, p9, p0); - console.log(p8, p12, p9, p4); - console.log(p8, p12, p9, p10); - console.log(p8, p12, p9, p13); - console.log(p8, p12, p13, p0); - console.log(p8, p12, p13, p4); - console.log(p8, p12, p13, p9); - console.log(p8, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/test.json deleted file mode 100644 index 1173a8deba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/address/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "0x0000000000000000000000000000000000000001", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["false", "0x0000000000000000000000000000000000000001"], - ["false", "0x0000000000000000000000000000000000000001", "1"], - ["false", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "1", "2"], - ["false", "0x0000000000000000000000000000000000000001", "1", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "string1", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "true" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/c.sol deleted file mode 100644 index dcd7e32d1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, bool p9, uint p0, string memory p4, bool p10, address p12, uint p1, string memory p5, bool p11, address p13 - ) public { - console.log(p8, p9); - console.log(p8, p9, p0); - console.log(p8, p9, p4); - console.log(p8, p9, p10); - console.log(p8, p9, p12); - console.log(p8, p9, p0, p1); - console.log(p8, p9, p0, p4); - console.log(p8, p9, p0, p10); - console.log(p8, p9, p0, p12); - console.log(p8, p9, p4, p0); - console.log(p8, p9, p4, p5); - console.log(p8, p9, p4, p10); - console.log(p8, p9, p4, p12); - console.log(p8, p9, p10, p0); - console.log(p8, p9, p10, p4); - console.log(p8, p9, p10, p11); - console.log(p8, p9, p10, p12); - console.log(p8, p9, p12, p0); - console.log(p8, p9, p12, p4); - console.log(p8, p9, p12, p10); - console.log(p8, p9, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/test.json deleted file mode 100644 index 20fa99d1f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - false, - 1, - "string1", - true, - "0x0000000000000000000000000000000000000001", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "false"], - ["false", "false", "1"], - ["false", "false", "string1"], - ["false", "false", "true"], - ["false", "false", "0x0000000000000000000000000000000000000001"], - ["false", "false", "1", "2"], - ["false", "false", "1", "string1"], - ["false", "false", "1", "true"], - ["false", "false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "false", "string1", "1"], - ["false", "false", "string1", "string2"], - ["false", "false", "string1", "true"], - [ - "false", - "false", - "string1", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "true", "1"], - ["false", "false", "true", "string1"], - ["false", "false", "true", "false"], - [ - "false", - "false", - "true", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "string1" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "true" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/c.sol deleted file mode 100644 index 2841cac0f6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, string memory p4, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p8, p4); - console.log(p8, p4, p0); - console.log(p8, p4, p5); - console.log(p8, p4, p9); - console.log(p8, p4, p12); - console.log(p8, p4, p0, p1); - console.log(p8, p4, p0, p5); - console.log(p8, p4, p0, p9); - console.log(p8, p4, p0, p12); - console.log(p8, p4, p5, p0); - console.log(p8, p4, p5, p6); - console.log(p8, p4, p5, p9); - console.log(p8, p4, p5, p12); - console.log(p8, p4, p9, p0); - console.log(p8, p4, p9, p5); - console.log(p8, p4, p9, p10); - console.log(p8, p4, p9, p12); - console.log(p8, p4, p12, p0); - console.log(p8, p4, p12, p5); - console.log(p8, p4, p12, p9); - console.log(p8, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/test.json deleted file mode 100644 index 9d49738b23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/string/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "string1"], - ["false", "string1", "1"], - ["false", "string1", "string2"], - ["false", "string1", "false"], - ["false", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "1", "2"], - ["false", "string1", "1", "string2"], - ["false", "string1", "1", "false"], - ["false", "string1", "1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "string2", "1"], - ["false", "string1", "string2", "string3"], - ["false", "string1", "string2", "false"], - [ - "false", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "false", "1"], - ["false", "string1", "false", "string2"], - ["false", "string1", "false", "true"], - [ - "false", - "string1", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/c.sol deleted file mode 100644 index c3bc4bbaf0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, uint p0, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p8, p0); - console.log(p8, p0, p1); - console.log(p8, p0, p4); - console.log(p8, p0, p9); - console.log(p8, p0, p12); - console.log(p8, p0, p1, p2); - console.log(p8, p0, p1, p4); - console.log(p8, p0, p1, p9); - console.log(p8, p0, p1, p12); - console.log(p8, p0, p4, p1); - console.log(p8, p0, p4, p5); - console.log(p8, p0, p4, p9); - console.log(p8, p0, p4, p12); - console.log(p8, p0, p9, p1); - console.log(p8, p0, p9, p4); - console.log(p8, p0, p9, p10); - console.log(p8, p0, p9, p12); - console.log(p8, p0, p12, p1); - console.log(p8, p0, p12, p4); - console.log(p8, p0, p12, p9); - console.log(p8, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/test.json deleted file mode 100644 index 0b83cdc2ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/bool/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "1"], - ["false", "1", "2"], - ["false", "1", "string1"], - ["false", "1", "false"], - ["false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "2", "3"], - ["false", "1", "2", "string1"], - ["false", "1", "2", "false"], - ["false", "1", "2", "0x0000000000000000000000000000000000000001"], - ["false", "1", "string1", "2"], - ["false", "1", "string1", "string2"], - ["false", "1", "string1", "false"], - ["false", "1", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "false", "2"], - ["false", "1", "false", "string1"], - ["false", "1", "false", "true"], - ["false", "1", "false", "0x0000000000000000000000000000000000000001"], - ["false", "1", "0x0000000000000000000000000000000000000001", "2"], - ["false", "1", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/c.sol deleted file mode 100644 index 4566cf481c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/test.json deleted file mode 100644 index 9f3eb46f5b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/not-reverting/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it doesn't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/c.sol deleted file mode 100644 index 88795a4a5a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - revert(""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/test.json deleted file mode 100644 index 712dbc0050..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/contract-creation/reverting/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it reverts", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/c.sol deleted file mode 100644 index cd7f144e74..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test(bool b) public { - console.log("string1"); - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/test.json deleted file mode 100644 index bbf9da1d79..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/assert/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["string1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/c.sol deleted file mode 100644 index 8163104603..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test() public { - console.log(1); - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/test.json deleted file mode 100644 index 2a9abc0b70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/error/revert/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/c.sol deleted file mode 100644 index 8e9200ea39..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract D { - constructor() public { - console.log("D"); - } -} - -contract C { - - constructor() public { - console.log("C1"); - new D(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/test.json deleted file mode 100644 index 2be7464f87..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/multiple-creates/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log of other contracts in their constructor", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/c.sol deleted file mode 100644 index 23471b536c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/test.json deleted file mode 100644 index cdda420be8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/not-reverting/test.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they don't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/c.sol deleted file mode 100644 index 2492d5fb61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - revert(""); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/test.json deleted file mode 100644 index ddccb5c54c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/multiple-messages/reverting/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"]], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "f", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/c.sol deleted file mode 100644 index 4c6333dc6b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../console.sol"; - -contract C { - - function log() public { - console.log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/test.json deleted file mode 100644 index 0b53a189fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/no-params/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [[]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/c.sol deleted file mode 100644 index 88d2e6a246..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes10 p24, bytes11 p25, bytes12 p26, bytes13 p27, bytes14 p28, bytes15 p29, - bytes16 p30, bytes17 p31, bytes18 p32, bytes19 p33, bytes20 p34, bytes21 p35 - ) public { - console.logBytes10(p24); - console.logBytes11(p25); - console.logBytes12(p26); - console.logBytes13(p27); - console.logBytes14(p28); - console.logBytes15(p29); - console.logBytes16(p30); - console.logBytes17(p31); - console.logBytes18(p32); - console.logBytes19(p33); - console.logBytes20(p34); - console.logBytes21(p35); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/test.json deleted file mode 100644 index b392db37fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes10-bytes21/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000010", - "0x0000000000000000000011", - "0x000000000000000000000012", - "0x00000000000000000000000013", - "0x0000000000000000000000000014", - "0x000000000000000000000000000015", - "0x00000000000000000000000000000016", - "0x0000000000000000000000000000000017", - "0x000000000000000000000000000000000018", - "0x00000000000000000000000000000000000019", - "0x0000000000000000000000000000000000000020", - "0x000000000000000000000000000000000000000021" - ], - "consoleLogs": [ - ["0x00000000000000000010"], - ["0x0000000000000000000011"], - ["0x000000000000000000000012"], - ["0x00000000000000000000000013"], - ["0x0000000000000000000000000014"], - ["0x000000000000000000000000000015"], - ["0x00000000000000000000000000000016"], - ["0x0000000000000000000000000000000017"], - ["0x000000000000000000000000000000000018"], - ["0x00000000000000000000000000000000000019"], - ["0x0000000000000000000000000000000000000020"], - ["0x000000000000000000000000000000000000000021"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/c.sol deleted file mode 100644 index 1e8a90d7db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes22 p36, bytes23 p37, bytes24 p38, bytes25 p39, bytes26 p40, bytes27 p41, - bytes28 p42, bytes29 p43, bytes30 p44, bytes31 p45, bytes32 p46 - ) public { - console.logBytes22(p36); - console.logBytes23(p37); - console.logBytes24(p38); - console.logBytes25(p39); - console.logBytes26(p40); - console.logBytes27(p41); - console.logBytes28(p42); - console.logBytes29(p43); - console.logBytes30(p44); - console.logBytes31(p45); - console.logBytes32(p46); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/test.json deleted file mode 100644 index 3882ae2b3e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/bytes22-bytes32/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000000000000000000000000000022", - "0x0000000000000000000000000000000000000000000023", - "0x000000000000000000000000000000000000000000000024", - "0x00000000000000000000000000000000000000000000000025", - "0x0000000000000000000000000000000000000000000000000026", - "0x000000000000000000000000000000000000000000000000000027", - "0x00000000000000000000000000000000000000000000000000000028", - "0x0000000000000000000000000000000000000000000000000000000029", - "0x000000000000000000000000000000000000000000000000000000000030", - "0x00000000000000000000000000000000000000000000000000000000000031", - "0x0000000000000000000000000000000000000000000000000000000000000032" - ], - "consoleLogs": [ - ["0x00000000000000000000000000000000000000000022"], - ["0x0000000000000000000000000000000000000000000023"], - ["0x000000000000000000000000000000000000000000000024"], - ["0x00000000000000000000000000000000000000000000000025"], - ["0x0000000000000000000000000000000000000000000000000026"], - ["0x000000000000000000000000000000000000000000000000000027"], - ["0x00000000000000000000000000000000000000000000000000000028"], - ["0x0000000000000000000000000000000000000000000000000000000029"], - ["0x000000000000000000000000000000000000000000000000000000000030"], - ["0x00000000000000000000000000000000000000000000000000000000000031"], - ["0x0000000000000000000000000000000000000000000000000000000000000032"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/c.sol deleted file mode 100644 index e676729de8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, bool p8, address p12, int p13, bytes memory p14, bytes1 p15, bytes2 p16, - bytes3 p17, bytes4 p18, bytes5 p19, bytes6 p20, bytes7 p21, bytes8 p22, bytes9 p23 - ) public { - console.logUint(p0); - console.logString(p4); - console.logBool(p8); - console.logAddress(p12); - console.logInt(p13); - console.logBytes(p14); - console.logBytes1(p15); - console.logBytes2(p16); - console.logBytes3(p17); - console.logBytes4(p18); - console.logBytes5(p19); - console.logBytes6(p20); - console.logBytes7(p21); - console.logBytes8(p22); - console.logBytes9(p23); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/test.json deleted file mode 100644 index dfcc39185a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/single-log/uint-bytes9/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - false, - "0x0000000000000000000000000000000000000001", - -1, - [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 - ], - "0x01", - "0x002", - "0x000003", - "0x00000004", - "0x0000000005", - "0x000000000006", - "0x00000000000007", - "0x0000000000000008", - "0x000000000000000009" - ], - "consoleLogs": [ - ["1"], - ["string1"], - ["false"], - ["0x0000000000000000000000000000000000000001"], - ["-1"], - [ - "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001" - ], - ["0x01"], - ["0x0002"], - ["0x000003"], - ["0x00000004"], - ["0x0000000005"], - ["0x000000000006"], - ["0x00000000000007"], - ["0x0000000000000008"], - ["0x000000000000000009"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/c.sol deleted file mode 100644 index 3ef6e8b14f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, address p12, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p4, p12); - console.log(p4, p12, p0); - console.log(p4, p12, p5); - console.log(p4, p12, p8); - console.log(p4, p12, p13); - console.log(p4, p12, p0, p1); - console.log(p4, p12, p0, p5); - console.log(p4, p12, p0, p8); - console.log(p4, p12, p0, p13); - console.log(p4, p12, p5, p0); - console.log(p4, p12, p5, p6); - console.log(p4, p12, p5, p8); - console.log(p4, p12, p5, p13); - console.log(p4, p12, p8, p0); - console.log(p4, p12, p8, p5); - console.log(p4, p12, p8, p9); - console.log(p4, p12, p8, p13); - console.log(p4, p12, p13, p0); - console.log(p4, p12, p13, p5); - console.log(p4, p12, p13, p8); - console.log(p4, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/test.json deleted file mode 100644 index 7cfae84d03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/address/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "0x0000000000000000000000000000000000000001", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["string1", "0x0000000000000000000000000000000000000001"], - ["string1", "0x0000000000000000000000000000000000000001", "1"], - ["string1", "0x0000000000000000000000000000000000000001", "string2"], - ["string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "2"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "string2" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "string3" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/c.sol deleted file mode 100644 index 1710ca5e27..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, bool p8, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p4, p8); - console.log(p4, p8, p0); - console.log(p4, p8, p5); - console.log(p4, p8, p9); - console.log(p4, p8, p12); - console.log(p4, p8, p0, p1); - console.log(p4, p8, p0, p5); - console.log(p4, p8, p0, p9); - console.log(p4, p8, p0, p12); - console.log(p4, p8, p5, p0); - console.log(p4, p8, p5, p6); - console.log(p4, p8, p5, p9); - console.log(p4, p8, p5, p12); - console.log(p4, p8, p9, p0); - console.log(p4, p8, p9, p5); - console.log(p4, p8, p9, p10); - console.log(p4, p8, p9, p12); - console.log(p4, p8, p12, p0); - console.log(p4, p8, p12, p5); - console.log(p4, p8, p12, p9); - console.log(p4, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/test.json deleted file mode 100644 index 652225f26f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - false, - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "false"], - ["string1", "false", "1"], - ["string1", "false", "string2"], - ["string1", "false", "false"], - ["string1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "1", "2"], - ["string1", "false", "1", "string2"], - ["string1", "false", "1", "false"], - ["string1", "false", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "string2", "1"], - ["string1", "false", "string2", "string3"], - ["string1", "false", "string2", "false"], - [ - "string1", - "false", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "false", "1"], - ["string1", "false", "false", "string2"], - ["string1", "false", "false", "true"], - [ - "string1", - "false", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/c.sol deleted file mode 100644 index 64f56825e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, string memory p5, uint p0, string memory p6, bool p8, address p12, uint p1, string memory p7, bool p9, address p13 - ) public { - console.log(p4, p5); - console.log(p4, p5, p0); - console.log(p4, p5, p6); - console.log(p4, p5, p8); - console.log(p4, p5, p12); - console.log(p4, p5, p0, p1); - console.log(p4, p5, p0, p6); - console.log(p4, p5, p0, p8); - console.log(p4, p5, p0, p12); - console.log(p4, p5, p6, p0); - console.log(p4, p5, p6, p7); - console.log(p4, p5, p6, p8); - console.log(p4, p5, p6, p12); - console.log(p4, p5, p8, p0); - console.log(p4, p5, p8, p6); - console.log(p4, p5, p8, p9); - console.log(p4, p5, p8, p12); - console.log(p4, p5, p12, p0); - console.log(p4, p5, p12, p6); - console.log(p4, p5, p12, p8); - console.log(p4, p5, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/test.json deleted file mode 100644 index dc79bd77fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/string/test.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "string2", - 1, - "string3", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string4", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "string2"], - ["string1", "string2", "1"], - ["string1", "string2", "string3"], - ["string1", "string2", "false"], - ["string1", "string2", "0x0000000000000000000000000000000000000001"], - ["string1", "string2", "1", "2"], - ["string1", "string2", "1", "string3"], - ["string1", "string2", "1", "false"], - [ - "string1", - "string2", - "1", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "string3", "1"], - ["string1", "string2", "string3", "string4"], - ["string1", "string2", "string3", "false"], - [ - "string1", - "string2", - "string3", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "false", "1"], - ["string1", "string2", "false", "string3"], - ["string1", "string2", "false", "false"], - [ - "string1", - "string2", - "false", - "0x0000000000000000000000000000000000000001" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "1" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "string3" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/c.sol deleted file mode 100644 index b1de458cce..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, uint p0, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p4, p0); - console.log(p4, p0, p1); - console.log(p4, p0, p5); - console.log(p4, p0, p8); - console.log(p4, p0, p12); - console.log(p4, p0, p1, p2); - console.log(p4, p0, p1, p5); - console.log(p4, p0, p1, p8); - console.log(p4, p0, p1, p12); - console.log(p4, p0, p5, p1); - console.log(p4, p0, p5, p6); - console.log(p4, p0, p5, p8); - console.log(p4, p0, p5, p12); - console.log(p4, p0, p8, p1); - console.log(p4, p0, p8, p5); - console.log(p4, p0, p8, p9); - console.log(p4, p0, p8, p12); - console.log(p4, p0, p12, p1); - console.log(p4, p0, p12, p5); - console.log(p4, p0, p12, p8); - console.log(p4, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/test.json deleted file mode 100644 index 5d1961f8bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/string/uint/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - 1, - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "1"], - ["string1", "1", "2"], - ["string1", "1", "string2"], - ["string1", "1", "false"], - ["string1", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "2", "3"], - ["string1", "1", "2", "string2"], - ["string1", "1", "2", "false"], - ["string1", "1", "2", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "string2", "2"], - ["string1", "1", "string2", "string3"], - ["string1", "1", "string2", "false"], - [ - "string1", - "1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "1", "false", "2"], - ["string1", "1", "false", "string2"], - ["string1", "1", "false", "false"], - ["string1", "1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "0x0000000000000000000000000000000000000001", "2"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["string1", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/c.sol deleted file mode 100644 index c643f362b1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, address p12, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p0, p12); - console.log(p0, p12, p1); - console.log(p0, p12, p4); - console.log(p0, p12, p8); - console.log(p0, p12, p13); - console.log(p0, p12, p1, p2); - console.log(p0, p12, p1, p4); - console.log(p0, p12, p1, p8); - console.log(p0, p12, p1, p13); - console.log(p0, p12, p4, p1); - console.log(p0, p12, p4, p5); - console.log(p0, p12, p4, p8); - console.log(p0, p12, p4, p13); - console.log(p0, p12, p8, p1); - console.log(p0, p12, p8, p4); - console.log(p0, p12, p8, p9); - console.log(p0, p12, p8, p13); - console.log(p0, p12, p13, p1); - console.log(p0, p12, p13, p4); - console.log(p0, p12, p13, p8); - console.log(p0, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/test.json deleted file mode 100644 index 82472306cd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/address/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "0x0000000000000000000000000000000000000001", - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["1", "0x0000000000000000000000000000000000000001"], - ["1", "0x0000000000000000000000000000000000000001", "2"], - ["1", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "2", "3"], - ["1", "0x0000000000000000000000000000000000000001", "2", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "2", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "2"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "false", "2"], - ["1", "0x0000000000000000000000000000000000000001", "false", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/c.sol deleted file mode 100644 index cf6025044d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, bool p8, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p0, p8); - console.log(p0, p8, p1); - console.log(p0, p8, p4); - console.log(p0, p8, p9); - console.log(p0, p8, p12); - console.log(p0, p8, p1, p2); - console.log(p0, p8, p1, p4); - console.log(p0, p8, p1, p9); - console.log(p0, p8, p1, p12); - console.log(p0, p8, p4, p1); - console.log(p0, p8, p4, p5); - console.log(p0, p8, p4, p9); - console.log(p0, p8, p4, p12); - console.log(p0, p8, p9, p1); - console.log(p0, p8, p9, p4); - console.log(p0, p8, p9, p10); - console.log(p0, p8, p9, p12); - console.log(p0, p8, p12, p1); - console.log(p0, p8, p12, p4); - console.log(p0, p8, p12, p9); - console.log(p0, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/test.json deleted file mode 100644 index 794182376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/bool/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - false, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "false"], - ["1", "false", "2"], - ["1", "false", "string1"], - ["1", "false", "false"], - ["1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "2", "3"], - ["1", "false", "2", "string1"], - ["1", "false", "2", "false"], - ["1", "false", "2", "0x0000000000000000000000000000000000000001"], - ["1", "false", "string1", "2"], - ["1", "false", "string1", "string2"], - ["1", "false", "string1", "false"], - ["1", "false", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "false", "false", "2"], - ["1", "false", "false", "string1"], - ["1", "false", "false", "true"], - ["1", "false", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "0x0000000000000000000000000000000000000001", "2"], - ["1", "false", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "false", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/c.sol deleted file mode 100644 index e7b4e67fc3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint256 p0, uint256 p1, int256 p2, int256 p3 - ) public { - console.log(p0); - console.log(p1); - console.logInt(p2); - console.logInt(p3); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/test.json deleted file mode 100644 index d4d2a2d767..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/most-significant-bit-set/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "description": "Should correctly interpret sign of integer types", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000", - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000" - ], - "consoleLogs": [ - [ - "115792089237316195423570985008687907853269984665640564039457584007913129639935" - ], - [ - "57896044618658097711785492504343953926634992332820282019728792003956564819968" - ], - ["-1"], - [ - "-57896044618658097711785492504343953926634992332820282019728792003956564819968" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/c.sol deleted file mode 100644 index 8b8c3be86f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p0, p4); - console.log(p0, p4, p1); - console.log(p0, p4, p5); - console.log(p0, p4, p8); - console.log(p0, p4, p12); - console.log(p0, p4, p1, p2); - console.log(p0, p4, p1, p5); - console.log(p0, p4, p1, p8); - console.log(p0, p4, p1, p12); - console.log(p0, p4, p5, p1); - console.log(p0, p4, p5, p6); - console.log(p0, p4, p5, p8); - console.log(p0, p4, p5, p12); - console.log(p0, p4, p8, p1); - console.log(p0, p4, p8, p5); - console.log(p0, p4, p8, p9); - console.log(p0, p4, p8, p12); - console.log(p0, p4, p12, p1); - console.log(p0, p4, p12, p5); - console.log(p0, p4, p12, p8); - console.log(p0, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/test.json deleted file mode 100644 index 43e758b1ef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/string/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "string1"], - ["1", "string1", "2"], - ["1", "string1", "string2"], - ["1", "string1", "false"], - ["1", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "2", "3"], - ["1", "string1", "2", "string2"], - ["1", "string1", "2", "false"], - ["1", "string1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "string2", "2"], - ["1", "string1", "string2", "string3"], - ["1", "string1", "string2", "false"], - [ - "1", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["1", "string1", "false", "2"], - ["1", "string1", "false", "string2"], - ["1", "string1", "false", "false"], - ["1", "string1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "0x0000000000000000000000000000000000000001", "2"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["1", "string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/c.sol deleted file mode 100644 index 255e1bcabd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, uint p1, uint p2, string memory p4, bool p8, address p12, uint p3, string memory p5, bool p9, address p13 - ) public { - console.log(p0, p1); - console.log(p0, p1, p2); - console.log(p0, p1, p4); - console.log(p0, p1, p8); - console.log(p0, p1, p12); - console.log(p0, p1, p2, p3); - console.log(p0, p1, p2, p4); - console.log(p0, p1, p2, p8); - console.log(p0, p1, p2, p12); - console.log(p0, p1, p4, p2); - console.log(p0, p1, p4, p5); - console.log(p0, p1, p4, p8); - console.log(p0, p1, p4, p12); - console.log(p0, p1, p8, p2); - console.log(p0, p1, p8, p4); - console.log(p0, p1, p8, p9); - console.log(p0, p1, p8, p12); - console.log(p0, p1, p12, p2); - console.log(p0, p1, p12, p4); - console.log(p0, p1, p12, p8); - console.log(p0, p1, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/test.json deleted file mode 100644 index 9acbf9a04b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/console-logs/uint/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - 2, - 3, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 4, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "2"], - ["1", "2", "3"], - ["1", "2", "string1"], - ["1", "2", "false"], - ["1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "2", "3", "4"], - ["1", "2", "3", "string1"], - ["1", "2", "3", "false"], - ["1", "2", "3", "0x0000000000000000000000000000000000000001"], - ["1", "2", "string1", "3"], - ["1", "2", "string1", "string2"], - ["1", "2", "string1", "false"], - ["1", "2", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "2", "false", "3"], - ["1", "2", "false", "string1"], - ["1", "2", "false", "false"], - ["1", "2", "false", "0x0000000000000000000000000000000000000001"], - ["1", "2", "0x0000000000000000000000000000000000000001", "3"], - ["1", "2", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "2", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index f9d14f9a3f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index e0c4968ade..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 92cfcf94c0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index 6cb3e62e9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/c.sol deleted file mode 100644 index f7ca724d9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() public - { - } - - function test() public { - D d = new D{salt: 0x1234567812345678123456781234567812345678123456781234567812345678}(); - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/d.sol deleted file mode 100644 index c136379799..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - - -contract D { - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/test.json deleted file mode 100644 index 320a4dbbb3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure-with-salt/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "^0.6.2", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index fd4a4be40d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index b016102dff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index e2a0d48013..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index fa348caa60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 4a561b4c1f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 54203c026a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index fd4a4be40d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index c5da9a6c76..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index ec13589438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index d0c70854db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index d6d8e3f9c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b231c7e894..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index d0c70854db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index dc2701f7e8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 8a525b42e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index d0c70854db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 2ca5c890f4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index c72ba9382f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index ad97d01b40..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - function f() public { - } -} - -contract C { - - constructor() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0d71810f4d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index d84f6b05e4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index c473a1e37d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/c.sol deleted file mode 100644 index 8c7d04f194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/test.json deleted file mode 100644 index 05d2df376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1 - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index 80cba46fc7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index 472d919d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/test.json deleted file mode 100644 index 9c44caf79f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index b6d22a2d07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 859e977601..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index b6d22a2d07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index b2c89cd9a7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index b44884e089..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol deleted file mode 100644 index aa2553ce4c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - d.fail(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol deleted file mode 100644 index 52cc7caaff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - function fail() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json deleted file mode 100644 index 72a40cd694..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol deleted file mode 100644 index a573033e04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol deleted file mode 100644 index b6251aacd2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - - constructor() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json deleted file mode 100644 index 769cbff030..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol deleted file mode 100644 index d6aa178902..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol deleted file mode 100644 index d1d8d5c07c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - fail(b); - } - - function fail(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json deleted file mode 100644 index 1f5824e46a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/c.sol deleted file mode 100644 index d6aa178902..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/d.sol deleted file mode 100644 index b29b9b72cc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/test.json deleted file mode 100644 index 736f39027d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/multiple-constructor-one-fails/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/c.sol deleted file mode 100644 index 64dad8a29e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/d.sol deleted file mode 100644 index 2cbc1ef357..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor() public { - revert("D failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/test.json deleted file mode 100644 index 3b52decde0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-reverts/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol deleted file mode 100644 index b81ab64051..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol deleted file mode 100644 index 78fec02b04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor() m public { - - } - - modifier m { - _; - fail(); - } - - function fail() internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json deleted file mode 100644 index e7fca1a8bd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol deleted file mode 100644 index 64dad8a29e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol deleted file mode 100644 index b3a62c70ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor() m public { - - } - - modifier m { - revert("D.m failed"); - _; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json deleted file mode 100644 index 299e3567ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "D.m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index bd5151f499..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 1cf6a2cfaf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index b5b8f9a3dd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index bb9d02af04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 85e74a146d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 25bf5e4340..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 792cdcb473..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index 03707bb638..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index adfa65263e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 096f86ddde..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index 30aeef820e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index ef49fbb2ac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index 88ef54e804..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/c.sol deleted file mode 100644 index f5cc930081..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/test.json deleted file mode 100644 index 896998f464..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/assert/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 90c30e81a2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - constructor(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 0874d4d947..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index 6f1eb9e293..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index a8e7dfa8db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/c.sol deleted file mode 100644 index 1d82f7010b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - uint immutable x = 42; - - constructor() public { - revert("asd"); - } - - function get2X() public returns (uint) { - return 2*x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/test.json deleted file mode 100644 index 0b2d4d1657..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/immutable-variable/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "skip": true, - "reason": "This code seems to trigger a bug in the compiler: https://github.com/ethereum/solidity/issues/8727", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/c.sol deleted file mode 100644 index d66ce259c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - - -contract C { - - uint256[] a; - - constructor(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/test.json deleted file mode 100644 index cccd9082da..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/invalid-array-access/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [1], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 329ce648bc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index 9c61b3a7cd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - constructor(bool b) m(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 6831cc0ab3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 9249e88f36..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index b395b1fe75..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 595e3e1ce6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/c.sol deleted file mode 100644 index 46258d4c35..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/test.json deleted file mode 100644 index d7afbd284f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args-and-value/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/c.sol deleted file mode 100644 index 46258d4c35..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/payable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 65160c3140..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/test.json deleted file mode 100644 index e45e625f9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index ea76d6c027..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index 8ab2e07a18..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index 82bfa19e70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - address(this).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index 79e10952cc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index edf2ae063f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 19810db69a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/c.sol deleted file mode 100644 index 0891098dc0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - - - revert(""); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/test.json deleted file mode 100644 index 8f1b1d7278..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/revert-without-message/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 595e3e1ce6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/c.sol deleted file mode 100644 index 60a5f74e45..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/send-value-to-nonpayable/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/c.sol deleted file mode 100644 index 4c793db81e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.6.0; - -contract IgnoredC { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/test.json deleted file mode 100644 index 5230fb77cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/create-message/no-calls/unrecognized-failure/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_ERROR" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 2c60307acb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 28a2b9cd7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 973353f040..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 2a98575247..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 264127f485..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index ae78a34a2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 2c60307acb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 28a2b9cd7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 973353f040..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 2a98575247..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 264127f485..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index ae78a34a2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 2c60307acb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index c332faf5cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 28a2b9cd7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 2de7b9cc23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 973353f040..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f530f4be38..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 2a98575247..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 264127f485..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 92b435eef8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index ae78a34a2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 2c60307acb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index a8ebb8ddbe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 28a2b9cd7a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index ada9108fcf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 973353f040..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 2a98575247..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 264127f485..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index ae78a34a2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/README.md b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/README.md deleted file mode 100644 index 2a849f2a60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## Tests before and after 0.6.3 - -Starting from solc 0.6.3, `revert`s and `require`s without an error message don't have an associated sourcemap. See [this issue](https://github.com/ethereum/solidity/issues/9006). - -The tests in `solc-before-0.6.3` produce the same result as the equivalent tests in the main directory, even if the error message is missing, since in those versions the source maps work fine. - -The tests in `solc-after-0.6.3` produce a less complete stack trace that also warns the users to upgrade the compiler and use error messages. diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index cc1d857976..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 11682641c4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 5 - } - }, - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index 3587e4b929..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 06f2e4cf44..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol deleted file mode 100644 index c4ad141c84..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2(bool b) { - require(b); - _; - } - - function test(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json deleted file mode 100644 index e5266508e5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 10 - } - }, - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 3ac4d2da09..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - uint i; - modifier m2() { - i += 1; - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json deleted file mode 100644 index c60936c032..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 11 - } - }, - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/c.sol deleted file mode 100644 index 5157b24faa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - - - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/test.json deleted file mode 100644 index e1b92aedb1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/call-message/optimized-out-revert/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index 34e5ccc68a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 5f4e4415e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index 9cf4a7b845..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 81f5c9a15f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol deleted file mode 100644 index 40933614c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - uint i; - modifier m2(bool b) { - require(b); - _; - } - - constructor(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json deleted file mode 100644 index 12f4d87df4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 70c4bbdb44..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - uint i; - modifier m2() { - i += 1; - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json deleted file mode 100644 index 3c43cf6dce..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/c.sol deleted file mode 100644 index 844e1a41ea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/test.json deleted file mode 100644 index 9f71adac41..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/modifiers/create-message/optimized-out-revert/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index 42473eed4a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 81cc232b47..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 8400cd63fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index 2270b3de5c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index 02740d1b40..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 81cc232b47..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 7736506815..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 81cc232b47..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index 47a65b4517..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index e1dd57931e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback() external { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 113cec2b13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 5e5d7400de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index e73eea6220..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol deleted file mode 100644 index 2464794819..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index 2d33292bfd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 3d1ce3270d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol deleted file mode 100644 index d4c53bda13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 5b41215ddd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 1799974a39..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index a7f2212d41..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - receive() external payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index 06bb491839..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 4bf5767cec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 1b30584438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index c5a21b8aa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 81cc232b47..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol deleted file mode 100644 index 33ac697e60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } -} - -contract C is D { - uint public j; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json deleted file mode 100644 index f9b2a5e156..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 0146f3f6b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index 4ebab244a2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index 1af0e324e9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index ac1a41c1d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 35d2b2b5c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 81cc232b47..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index f6a5a569de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index 143126189d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback() external { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 113cec2b13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 7d8db97a13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index c76caca383..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index ed4a271e37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol deleted file mode 100644 index d3f7c71cce..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index b09b1a9e9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 3d1ce3270d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol deleted file mode 100644 index b8433d705a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 86d91be47f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json deleted file mode 100644 index 1b6db64c48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 294757ea09..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index eacc99114c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - receive() external payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index 06bb491839..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 31b15d3153..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index c8bc974a70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 65a1b66544..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/with-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": ">=0.6.3 <0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "UNMAPPED_SOLC_0_6_3_REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index cc1d857976..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 348af2ca6b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index 3587e4b929..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 348af2ca6b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol deleted file mode 100644 index c4ad141c84..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2(bool b) { - require(b); - _; - } - - function test(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json deleted file mode 100644 index afa2f1d6dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 8f922ebf1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json deleted file mode 100644 index afa2f1d6dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/call-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index 34e5ccc68a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 85689093f8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index 9cf4a7b845..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 85689093f8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol deleted file mode 100644 index 40933614c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - uint i; - modifier m2(bool b) { - require(b); - _; - } - - constructor(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json deleted file mode 100644 index a0156efc4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 844e1a41ea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json deleted file mode 100644 index a0156efc4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/modifiers/create-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index 42473eed4a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 8400cd63fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index ff20f98a28..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index 02740d1b40..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 7736506815..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index 47a65b4517..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index e1dd57931e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback() external { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 25d0260ac1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 5e5d7400de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index e73eea6220..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol deleted file mode 100644 index 2464794819..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index 2d33292bfd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 6bc67ac562..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol deleted file mode 100644 index d4c53bda13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 5b41215ddd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 1799974a39..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index a7f2212d41..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - receive() external payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index 886aa0454d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 4bf5767cec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 1b30584438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/require-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index c5a21b8aa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol deleted file mode 100644 index 33ac697e60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } -} - -contract C is D { - uint public j; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json deleted file mode 100644 index 563ca3e360..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/inherited-statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 0146f3f6b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - constructor() public payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index ff20f98a28..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index 1af0e324e9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 35d2b2b5c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 3c6fed1da8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index f6a5a569de..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index 143126189d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - fallback() external { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 25d0260ac1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 7d8db97a13..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index c76caca383..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index 437cf6a264..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol deleted file mode 100644 index d3f7c71cce..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index b09b1a9e9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - function test() public { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 6bc67ac562..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol deleted file mode 100644 index b8433d705a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 86d91be47f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json deleted file mode 100644 index 8c5179279c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 294757ea09..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index eacc99114c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - receive() external payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index 886aa0454d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 31b15d3153..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index c8bc974a70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.6.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json deleted file mode 100644 index a3c4a040a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/revert-without-message/without-solc-0.6.3-bug/revert-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "solc": "<0.6.3 || >= 0.6.9", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/c.sol deleted file mode 100644 index c5322e7c42..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.6.0; - -import "./d.sol"; - -contract E { - constructor() public { - revert("E"); - } -} - - -contract C is D, E { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/d.sol deleted file mode 100644 index 8da62ecaf1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.6.0; - -contract D { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/test.json deleted file mode 100644 index e150806204..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/different-contracts-same-deployment-bytecode/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "description": "Should clash create bytecodes and resolve to D", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C and D have the same deployment bytecode because they always fail and get recognized as D", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/c.sol deleted file mode 100644 index 2981f32da9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.6.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function proxyMessageCall(function (uint256) external returns (uint256) aFunction, uint256 aParameter) public returns (uint256) { - return aFunction(aParameter); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_6/special-cases/function-type-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/c.sol deleted file mode 100644 index 6ab72f9f3a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -import "./d.sol"; - -contract C { - function test() public { - D d = new D(); - - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/d.sol deleted file mode 100644 index 754be9cb5f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -contract D { - struct MyStruct { - uint x; - uint y; - } - - function fail() public returns (MyStruct[] memory) - { - revert("D failed"); - - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/test.json deleted file mode 100644 index a0403282cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/call-failing-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/c.sol deleted file mode 100644 index 238ee954bc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -contract C is D { - function test() public override returns (MyStruct[] memory) { - MyStruct[] memory structs = super.test(); - console.log(structs[1].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/d.sol deleted file mode 100644 index 7739642312..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -struct MyStruct { - uint x; - uint y; -} - -contract D { - function test() public virtual returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0].x = 1; - structs[1].x = 2; - console.log(structs[0].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/test.json deleted file mode 100644 index 8249b806f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/inherits-returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [], - "consoleLogs": [["1"], ["2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/c.sol deleted file mode 100644 index 8cbdd41510..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function doSomething(uint256[][] memory numbers) public returns (uint256) { - return numbers[0][0]; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/nested-arrays-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/c.sol deleted file mode 100644 index 2aa79fe132..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -struct MyStruct { - uint x; - uint y; -} - -contract C { - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/test.json deleted file mode 100644 index a9e57fd743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/non-payable-returns-struct/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/c.sol deleted file mode 100644 index c24ed51f68..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.7.0; -pragma experimental ABIEncoderV2; - -import "./../../../../../../../../console.sol"; - -contract C { - struct MyStruct { - address a; - } - - function log() public { - MyStruct[] memory ms = getStructs(); - console.log(ms[0].a); - } - - function getStructs() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(0x0000000000000000000000000000000000000001); - structs[1] = MyStruct(0x0000000000000000000000000000000000000002); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/test.json deleted file mode 100644 index b9555dcbda..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/abi-v2/returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [], - "consoleLogs": [["0x0000000000000000000000000000000000000001"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/c.sol deleted file mode 100644 index caffe27394..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - d.test2(); - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/d.sol deleted file mode 100644 index 1e7c6cf9ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/test.json deleted file mode 100644 index c289401034..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/c.sol deleted file mode 100644 index bb7cdbce48..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public payable { - D d = new D(); - - d.test2{value: 2}(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/d.sol deleted file mode 100644 index 0b1dcb24e4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -import "./c.sol"; - -contract D { - - function test2() public payable { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/test.json deleted file mode 100644 index eca5951d4b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/call-with-value-without-funds/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/c.sol deleted file mode 100644 index 2229c02cb7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/d.sol deleted file mode 100644 index 981dfa43a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - constructor() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/test.json deleted file mode 100644 index d71e1c0655..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/contract-creation-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 93a9679196..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index 5ae2ab8098..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 4e880a7fb7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index bd468a347a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 7cb217b373..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 17b74782c6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index 7c91cc4794..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/c.sol deleted file mode 100644 index dd483055fd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - try d.fail() {} catch { - revert("C failed"); - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/d.sol deleted file mode 100644 index 17b74782c6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/test.json deleted file mode 100644 index 81bb96eaea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-try-catch/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/c.sol deleted file mode 100644 index ee1c6bfe57..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/d.sol deleted file mode 100644 index 0b5e6c76bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - uint immutable x = 11; - - function get2X () public returns (uint) { - return 2*x; - } - - function fail(uint arg) public returns (uint) { - revert("D failed"); - return x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/test.json deleted file mode 100644 index 764e2d2a5d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/forward-contract-with-immutable-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index aadf5e7bac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 0607e9a58e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 40fcde2bd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/c.sol deleted file mode 100644 index bfdc316d8a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - uint immutable x = 10; - - function get2X () public returns (uint) { - return 2*x; - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/test.json deleted file mode 100644 index 3899ce75ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/immutable-variable/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 7cb217b373..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index cb6c3a6df3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index fcefc18710..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index 7222de1d86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index f0247d58ab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b188c07f2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index 7222de1d86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index edcac2df67..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 6903d2e256..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index 7222de1d86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 732ab135f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index cf6f0a2b3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index ccc9495f55..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - function f() public { - } -} - -contract C { - - function test() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0a47f8c5f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index 92b7d2a0ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index 7b04738e07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/c.sol deleted file mode 100644 index a843f0bf49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public { - r(); - } - - function r() internal { - revert("D failed"); - } -} - -contract C { - - function forward(address implementation) internal { - assembly { - calldatacopy(0, 0, calldatasize()) - let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) - returndatacopy(0, 0, returndatasize()) - switch result - case 0 { revert(0, returndatasize()) } - default { return(0, returndatasize()) } - } - } - - fallback () external payable { - D d = new D(); - forward(address(d)); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/test.json deleted file mode 100644 index 94ea8ade31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/proxy/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xa9cc4718", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 29 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "forward", - "line": 19 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "fail", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "r", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/c.sol deleted file mode 100644 index c87927ec86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/test.json deleted file mode 100644 index 0eebb2e652..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index d496592270..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index b4ae14ccb4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/test.json deleted file mode 100644 index e7b7de2410..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/c.sol deleted file mode 100644 index a73db0a0ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - uint immutable x = 16448250; - address immutable a = 0xFEe9686eA76eCb04b8bB8E1AC29D7b1bCAeA283a; - bool immutable b = false; - - function get2X () public returns (uint) { - if (b) { - return 2*x; - } - } - - function getAddress() public returns (address) { - if (!b) { - return a; - } - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/test.json deleted file mode 100644 index 10a3c0f08e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/several-immutable-variables/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 21 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/c.sol deleted file mode 100644 index 6e81f1f8aa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - mapping(uint => uint) public x; - function internalFunction(mapping(uint => uint) storage m) internal pure { - revert(); - } - - function test() public { - internalFunction(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/test.json deleted file mode 100644 index e11057d991..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/storage-mapping-parameter/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 10 - }, - "functionType": 1 - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "function": "internalFunction", - "contract": "C", - "file": "c.sol", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/c.sol deleted file mode 100644 index dbc89ddc50..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.1; - -uint constant EXPONENT = 10; -uint constant MULTIPLIER = 2**EXPONENT; - -// basic test just to check that top-level constants -// don't break anything obvious -contract C { - function test() public { - require(false, "failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/test.json deleted file mode 100644 index ef3ba0ad49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-constants/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.7.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/c.sol deleted file mode 100644 index a476da604a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.1; - -function fail() { - require(false, "top-level function failed"); -} - -contract C { - modifier m() { - fail(); - _; - } - function test() m public { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/test.json deleted file mode 100644 index 5755eafa3e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-called-from-modifier/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/c.sol deleted file mode 100644 index ce1ebc5cdb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.1; - -import "./d.sol"; - -contract C { - function test() public { - fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/d.sol deleted file mode 100644 index 054c45f8d1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/d.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.7.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/test.json deleted file mode 100644 index fa1030dc9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-different-file/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "d.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/c.sol deleted file mode 100644 index e2a7e771b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} - -contract C { - function test() public { - fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/test.json deleted file mode 100644 index 8f4692dbb1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-function-reverts/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/c.sol deleted file mode 100644 index 1815bbd4af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} - -function callFail() returns (uint) { - return fail(); -} - -contract C { - function test() public { - callFail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/test.json deleted file mode 100644 index 93027efc92..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/top-level-functions-chained/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 14 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "file": "c.sol", - "function": "callFail", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index fc0ff6f6b4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 9206a331cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index fc0ff6f6b4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index f76d0f1c6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/c.sol deleted file mode 100644 index 58d924f408..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/c.sol +++ /dev/null @@ -1,21 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - try d.fail() {} catch { - d.test2(); - } - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/d.sol deleted file mode 100644 index 1e7c6cf9ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/test.json deleted file mode 100644 index 53cabe3d05..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/try-catch-and-back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 14 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 19 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol deleted file mode 100644 index a7411ed2e1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol deleted file mode 100644 index 51680bafd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.7.0; - -// Contracts starting with Ignored -// are ignored by the tracer -contract IgnoredD { - - function fail() public { - D d = new D(); - d.fail(); - } - -} - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json deleted file mode 100644 index 939334a8f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 17 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol deleted file mode 100644 index a7411ed2e1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol deleted file mode 100644 index 1c0a08df92..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract IgnoredD { - - function fail() public returns (uint) { - revert("IngoredD failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json deleted file mode 100644 index 83d7bb3471..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "IngoredD failed" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/c.sol deleted file mode 100644 index 5e67e4f490..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/d.sol deleted file mode 100644 index 78818afdd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - fallback () external { - revert("inherited fallback"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/test.json deleted file mode 100644 index 27fbeb065e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited fallback", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/c.sol deleted file mode 100644 index 5e67e4f490..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/d.sol deleted file mode 100644 index 2467e3f7a9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - modifier fail { - revert("inherited function with modifier"); - _; - } - - function test() fail external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/test.json deleted file mode 100644 index b17a8fa09a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited function with modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/c.sol deleted file mode 100644 index 26ae8d04f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - - function test() fail external { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/d.sol deleted file mode 100644 index d832fa1463..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - modifier fail { - revert("inherited modifier"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/test.json deleted file mode 100644 index 683a3c985f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/c.sol deleted file mode 100644 index 5e67e4f490..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/d.sol deleted file mode 100644 index a6c5072049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - fallback () external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/test.json deleted file mode 100644 index 11f162917b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-fallback/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/c.sol deleted file mode 100644 index 5e67e4f490..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/d.sol deleted file mode 100644 index 60c917c160..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function test() external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/test.json deleted file mode 100644 index 205b5d6d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-nonpayable-function/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/c.sol deleted file mode 100644 index 5e67e4f490..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/d.sol deleted file mode 100644 index 8ee1b3798b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () external payable { - revert("inherited receive"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/test.json deleted file mode 100644 index a6950faaab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/inherited-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited receive", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/c.sol deleted file mode 100644 index 27bbf2df86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/d.sol deleted file mode 100644 index 21b78d94ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./e.sol"; - -contract D is E { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/e.sol deleted file mode 100644 index 3021d57f30..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/e.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract E { - - function test() public virtual { - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/test.json deleted file mode 100644 index 976bd39194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-skiping-parent/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "C", - "file": "e.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/c.sol deleted file mode 100644 index 27bbf2df86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/d.sol deleted file mode 100644 index 05443dc674..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function test() m public virtual { - } - - modifier m { - revert("m failed"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/test.json deleted file mode 100644 index 481e2c24a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call-with-modifier-failure/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/c.sol deleted file mode 100644 index 27bbf2df86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/d.sol deleted file mode 100644 index ebe4dee162..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function test() public virtual { - revert("failed from super"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/test.json deleted file mode 100644 index 0eb6ca4b9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/inheritance/super-call/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failed from super", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index 7485a63800..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 9a44213375..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index d4829d2c61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index 27dfceeba7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index d1a546efc5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 1b5711a70d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/c.sol deleted file mode 100644 index fc81f3bcd1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/test.json deleted file mode 100644 index 382751c049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 15fbd4cd28..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index c232fb9665..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index 94fdf67956..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 9e2b8d01a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index 16a0fb644b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index 30972741e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index 9ca5fad23b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/c.sol deleted file mode 100644 index 1593a125a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(uint i) public { - if (i > 0) { - test(i - 1); - } - - revert("base case"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/test.json deleted file mode 100644 index 208b2804a0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/internal-calls/recursive-call/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [2], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "base case", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/c.sol deleted file mode 100644 index 879502aa9b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(address payable a) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/test.json deleted file mode 100644 index 42c4c0f0f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/address-payable-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xbb29998e", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/c.sol deleted file mode 100644 index a1d10b6caf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - - - function test(bool b) public { - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/test.json deleted file mode 100644 index aa69202405..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/assert/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/c.sol deleted file mode 100644 index 56c58fb8f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - function f() public returns (bool) { - return false; - } -} - -interface I { - function f() external returns (uint); -} - -contract C { - - function test() public { - fail(new D()); - } - - function fail(D d) public { - require(d.f(), "D.f returned false"); - } - - function fail2(I i) public { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/test.json deleted file mode 100644 index 9a39e71f4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/contract-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x0cad6d76", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail2", - "line": 23 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/c.sol deleted file mode 100644 index 31b18a8330..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/test.json deleted file mode 100644 index 8d1211b1d0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-existing-function/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "function": "f", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/c.sol deleted file mode 100644 index 76e50b97c1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function f() internal returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/test.json deleted file mode 100644 index f2c17f5f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-internal-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/c.sol deleted file mode 100644 index 31b18a8330..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/test.json deleted file mode 100644 index df1d3fb945..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/direct-library-call-non-existing-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff1", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 6839ed9a4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - function test(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 4515494873..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/c.sol deleted file mode 100644 index 163a7f406e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - enum E { - YES, - NO - } -} - -contract C is D { - - function test(E e) public { - assert(e == E.YES); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/test.json deleted file mode 100644 index c5fd0fa16d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/enum-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf1820bdc", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index a22e4375d2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index 0574360fa8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/c.sol deleted file mode 100644 index 8f2d3062a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/test.json deleted file mode 100644 index 769d6143b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-with-selector/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/c.sol deleted file mode 100644 index 766f9055ab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/test.json deleted file mode 100644 index 5bc2c08114..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/fallback-non-payable-without-selector/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/c.sol deleted file mode 100644 index f8f6d40b16..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/test.json deleted file mode 100644 index aa05c48e86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/function-non-payable/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "params": [], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/c.sol deleted file mode 100644 index 4beb5f5192..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-array-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/c.sol deleted file mode 100644 index 7c29ef4b0b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol deleted file mode 100644 index 2c4fdbdafa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json deleted file mode 100644 index b42f4337a4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0, 0, 0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/c.sol deleted file mode 100644 index ee7076f0fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - uint256[] a; - - function test(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/test.json deleted file mode 100644 index 760c99fa15..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-internal-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [1], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/c.sol deleted file mode 100644 index 0a980425f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - uint256[] public a; - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/test.json deleted file mode 100644 index 647b1a9326..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/invalid-public-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "params": [0], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 3efc97ba06..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index aa5c722e70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - function test(bool b) m(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 1d1f96fccf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 504921cd19..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index 4e3190f006..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - function test(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/c.sol deleted file mode 100644 index a74ec39726..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/test.json deleted file mode 100644 index dbea0884fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/no-fallback-nor-selector/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/c.sol deleted file mode 100644 index 4beb5f5192..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-array-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 7c29ef4b0b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 2c4fdbdafa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json deleted file mode 100644 index 6c9ac4b106..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x1a804602", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 443ed00abf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/test.json deleted file mode 100644 index a33715441b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 55c0c4f445..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index d87f4cf7a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index 20f01155f8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - address(this).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index e25de31880..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/c.sol deleted file mode 100644 index 0debea62c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/test.json deleted file mode 100644 index 79fc3db639..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/c.sol deleted file mode 100644 index 268ceed146..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - receive () external payable { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/test.json deleted file mode 100644 index b6d3170449..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message-in-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index 500c0339b7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 4af6d776ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/call-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/c.sol deleted file mode 100644 index 53f0fbfaa0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, address p13, uint p0, string memory p4, bool p8, address p14, uint p1, string memory p5, bool p9 - ) public { - console.log(p12, p13); - console.log(p12, p13, p0); - console.log(p12, p13, p4); - console.log(p12, p13, p8); - console.log(p12, p13, p14); - console.log(p12, p13, p0, p1); - console.log(p12, p13, p0, p4); - console.log(p12, p13, p0, p8); - console.log(p12, p13, p0, p14); - console.log(p12, p13, p4, p0); - console.log(p12, p13, p4, p5); - console.log(p12, p13, p4, p8); - console.log(p12, p13, p4, p14); - console.log(p12, p13, p8, p0); - console.log(p12, p13, p8, p4); - console.log(p12, p13, p8, p9); - console.log(p12, p13, p8, p14); - console.log(p12, p13, p14, p0); - console.log(p12, p13, p14, p4); - console.log(p12, p13, p14, p8); - console.log(p12, p13, p14, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/test.json deleted file mode 100644 index 09b833fffb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/address/test.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000003", - 2, - "string2", - false - ], - "consoleLogs": [ - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/c.sol deleted file mode 100644 index 5e30d39782..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, bool p8, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p12, p8); - console.log(p12, p8, p0); - console.log(p12, p8, p4); - console.log(p12, p8, p9); - console.log(p12, p8, p13); - console.log(p12, p8, p0, p1); - console.log(p12, p8, p0, p4); - console.log(p12, p8, p0, p9); - console.log(p12, p8, p0, p13); - console.log(p12, p8, p4, p0); - console.log(p12, p8, p4, p5); - console.log(p12, p8, p4, p9); - console.log(p12, p8, p4, p13); - console.log(p12, p8, p9, p0); - console.log(p12, p8, p9, p4); - console.log(p12, p8, p9, p10); - console.log(p12, p8, p9, p13); - console.log(p12, p8, p13, p0); - console.log(p12, p8, p13, p4); - console.log(p12, p8, p13, p9); - console.log(p12, p8, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/test.json deleted file mode 100644 index 6ce83ccdba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/bool/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - false, - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "false"], - ["0x0000000000000000000000000000000000000001", "false", "1"], - ["0x0000000000000000000000000000000000000001", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "1", "2"], - ["0x0000000000000000000000000000000000000001", "false", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "string1", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "true" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/c.sol deleted file mode 100644 index d427d0ab61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, string memory p4, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p12, p4); - console.log(p12, p4, p0); - console.log(p12, p4, p5); - console.log(p12, p4, p8); - console.log(p12, p4, p13); - console.log(p12, p4, p0, p1); - console.log(p12, p4, p0, p5); - console.log(p12, p4, p0, p8); - console.log(p12, p4, p0, p13); - console.log(p12, p4, p5, p0); - console.log(p12, p4, p5, p6); - console.log(p12, p4, p5, p8); - console.log(p12, p4, p5, p13); - console.log(p12, p4, p8, p0); - console.log(p12, p4, p8, p5); - console.log(p12, p4, p8, p9); - console.log(p12, p4, p8, p13); - console.log(p12, p4, p13, p0); - console.log(p12, p4, p13, p5); - console.log(p12, p4, p13, p8); - console.log(p12, p4, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/test.json deleted file mode 100644 index 59df3da678..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/string/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "string1"], - ["0x0000000000000000000000000000000000000001", "string1", "1"], - ["0x0000000000000000000000000000000000000001", "string1", "string2"], - ["0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "string3" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/c.sol deleted file mode 100644 index 751ae0b947..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, uint p0, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p12, p0); - console.log(p12, p0, p1); - console.log(p12, p0, p4); - console.log(p12, p0, p8); - console.log(p12, p0, p13); - console.log(p12, p0, p1, p2); - console.log(p12, p0, p1, p4); - console.log(p12, p0, p1, p8); - console.log(p12, p0, p1, p13); - console.log(p12, p0, p4, p1); - console.log(p12, p0, p4, p5); - console.log(p12, p0, p4, p8); - console.log(p12, p0, p4, p13); - console.log(p12, p0, p8, p1); - console.log(p12, p0, p8, p4); - console.log(p12, p0, p8, p9); - console.log(p12, p0, p8, p13); - console.log(p12, p0, p13, p1); - console.log(p12, p0, p13, p4); - console.log(p12, p0, p13, p8); - console.log(p12, p0, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/test.json deleted file mode 100644 index fd89352f65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/address/uint/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "1"], - ["0x0000000000000000000000000000000000000001", "1", "2"], - ["0x0000000000000000000000000000000000000001", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "2", "3"], - ["0x0000000000000000000000000000000000000001", "1", "2", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "2", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "false", "2"], - ["0x0000000000000000000000000000000000000001", "1", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/c.sol deleted file mode 100644 index 1314ddfb0d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, address p12, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p8, p12); - console.log(p8, p12, p0); - console.log(p8, p12, p4); - console.log(p8, p12, p9); - console.log(p8, p12, p13); - console.log(p8, p12, p0, p1); - console.log(p8, p12, p0, p4); - console.log(p8, p12, p0, p9); - console.log(p8, p12, p0, p13); - console.log(p8, p12, p4, p0); - console.log(p8, p12, p4, p5); - console.log(p8, p12, p4, p9); - console.log(p8, p12, p4, p13); - console.log(p8, p12, p9, p0); - console.log(p8, p12, p9, p4); - console.log(p8, p12, p9, p10); - console.log(p8, p12, p9, p13); - console.log(p8, p12, p13, p0); - console.log(p8, p12, p13, p4); - console.log(p8, p12, p13, p9); - console.log(p8, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/test.json deleted file mode 100644 index 1173a8deba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/address/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "0x0000000000000000000000000000000000000001", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["false", "0x0000000000000000000000000000000000000001"], - ["false", "0x0000000000000000000000000000000000000001", "1"], - ["false", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "1", "2"], - ["false", "0x0000000000000000000000000000000000000001", "1", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "string1", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "true" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/c.sol deleted file mode 100644 index f8cb7b9656..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, bool p9, uint p0, string memory p4, bool p10, address p12, uint p1, string memory p5, bool p11, address p13 - ) public { - console.log(p8, p9); - console.log(p8, p9, p0); - console.log(p8, p9, p4); - console.log(p8, p9, p10); - console.log(p8, p9, p12); - console.log(p8, p9, p0, p1); - console.log(p8, p9, p0, p4); - console.log(p8, p9, p0, p10); - console.log(p8, p9, p0, p12); - console.log(p8, p9, p4, p0); - console.log(p8, p9, p4, p5); - console.log(p8, p9, p4, p10); - console.log(p8, p9, p4, p12); - console.log(p8, p9, p10, p0); - console.log(p8, p9, p10, p4); - console.log(p8, p9, p10, p11); - console.log(p8, p9, p10, p12); - console.log(p8, p9, p12, p0); - console.log(p8, p9, p12, p4); - console.log(p8, p9, p12, p10); - console.log(p8, p9, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/test.json deleted file mode 100644 index 20fa99d1f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - false, - 1, - "string1", - true, - "0x0000000000000000000000000000000000000001", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "false"], - ["false", "false", "1"], - ["false", "false", "string1"], - ["false", "false", "true"], - ["false", "false", "0x0000000000000000000000000000000000000001"], - ["false", "false", "1", "2"], - ["false", "false", "1", "string1"], - ["false", "false", "1", "true"], - ["false", "false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "false", "string1", "1"], - ["false", "false", "string1", "string2"], - ["false", "false", "string1", "true"], - [ - "false", - "false", - "string1", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "true", "1"], - ["false", "false", "true", "string1"], - ["false", "false", "true", "false"], - [ - "false", - "false", - "true", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "string1" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "true" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/c.sol deleted file mode 100644 index b87964395a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, string memory p4, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p8, p4); - console.log(p8, p4, p0); - console.log(p8, p4, p5); - console.log(p8, p4, p9); - console.log(p8, p4, p12); - console.log(p8, p4, p0, p1); - console.log(p8, p4, p0, p5); - console.log(p8, p4, p0, p9); - console.log(p8, p4, p0, p12); - console.log(p8, p4, p5, p0); - console.log(p8, p4, p5, p6); - console.log(p8, p4, p5, p9); - console.log(p8, p4, p5, p12); - console.log(p8, p4, p9, p0); - console.log(p8, p4, p9, p5); - console.log(p8, p4, p9, p10); - console.log(p8, p4, p9, p12); - console.log(p8, p4, p12, p0); - console.log(p8, p4, p12, p5); - console.log(p8, p4, p12, p9); - console.log(p8, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/test.json deleted file mode 100644 index 9d49738b23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/string/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "string1"], - ["false", "string1", "1"], - ["false", "string1", "string2"], - ["false", "string1", "false"], - ["false", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "1", "2"], - ["false", "string1", "1", "string2"], - ["false", "string1", "1", "false"], - ["false", "string1", "1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "string2", "1"], - ["false", "string1", "string2", "string3"], - ["false", "string1", "string2", "false"], - [ - "false", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "false", "1"], - ["false", "string1", "false", "string2"], - ["false", "string1", "false", "true"], - [ - "false", - "string1", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/c.sol deleted file mode 100644 index 6da0019242..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, uint p0, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p8, p0); - console.log(p8, p0, p1); - console.log(p8, p0, p4); - console.log(p8, p0, p9); - console.log(p8, p0, p12); - console.log(p8, p0, p1, p2); - console.log(p8, p0, p1, p4); - console.log(p8, p0, p1, p9); - console.log(p8, p0, p1, p12); - console.log(p8, p0, p4, p1); - console.log(p8, p0, p4, p5); - console.log(p8, p0, p4, p9); - console.log(p8, p0, p4, p12); - console.log(p8, p0, p9, p1); - console.log(p8, p0, p9, p4); - console.log(p8, p0, p9, p10); - console.log(p8, p0, p9, p12); - console.log(p8, p0, p12, p1); - console.log(p8, p0, p12, p4); - console.log(p8, p0, p12, p9); - console.log(p8, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/test.json deleted file mode 100644 index 0b83cdc2ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/bool/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "1"], - ["false", "1", "2"], - ["false", "1", "string1"], - ["false", "1", "false"], - ["false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "2", "3"], - ["false", "1", "2", "string1"], - ["false", "1", "2", "false"], - ["false", "1", "2", "0x0000000000000000000000000000000000000001"], - ["false", "1", "string1", "2"], - ["false", "1", "string1", "string2"], - ["false", "1", "string1", "false"], - ["false", "1", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "false", "2"], - ["false", "1", "false", "string1"], - ["false", "1", "false", "true"], - ["false", "1", "false", "0x0000000000000000000000000000000000000001"], - ["false", "1", "0x0000000000000000000000000000000000000001", "2"], - ["false", "1", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/c.sol deleted file mode 100644 index 9c08904e11..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/test.json deleted file mode 100644 index 9f3eb46f5b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/not-reverting/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it doesn't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/c.sol deleted file mode 100644 index 6cb535b9fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - revert(""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/test.json deleted file mode 100644 index 712dbc0050..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/contract-creation/reverting/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it reverts", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/c.sol deleted file mode 100644 index 05d63e5e1a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test(bool b) public { - console.log("string1"); - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/test.json deleted file mode 100644 index bbf9da1d79..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/assert/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["string1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/c.sol deleted file mode 100644 index 66a180b27b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test() public { - console.log(1); - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/test.json deleted file mode 100644 index 2a9abc0b70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/error/revert/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/c.sol deleted file mode 100644 index 0a191314ab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -function log() { - console.log("log from top-level function"); -} - -contract C { - function test() public { - log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/test.json deleted file mode 100644 index 49e82d8e46..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/log-in-top-level-function/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "consoleLogs": [["log from top-level function"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/c.sol deleted file mode 100644 index 1d07bae430..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract D { - constructor() public { - console.log("D"); - } -} - -contract C { - - constructor() public { - console.log("C1"); - new D(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/test.json deleted file mode 100644 index 2be7464f87..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/multiple-creates/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log of other contracts in their constructor", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/c.sol deleted file mode 100644 index 6883f854fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/test.json deleted file mode 100644 index cdda420be8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/not-reverting/test.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they don't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/c.sol deleted file mode 100644 index 5fe63230b5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - revert(""); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/test.json deleted file mode 100644 index ddccb5c54c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/multiple-messages/reverting/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"]], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "f", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/c.sol deleted file mode 100644 index fb3121c056..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../console.sol"; - -contract C { - - function log() public { - console.log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/test.json deleted file mode 100644 index 0b53a189fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/no-params/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [[]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/c.sol deleted file mode 100644 index aa6204c401..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes10 p24, bytes11 p25, bytes12 p26, bytes13 p27, bytes14 p28, bytes15 p29, - bytes16 p30, bytes17 p31, bytes18 p32, bytes19 p33, bytes20 p34, bytes21 p35 - ) public { - console.logBytes10(p24); - console.logBytes11(p25); - console.logBytes12(p26); - console.logBytes13(p27); - console.logBytes14(p28); - console.logBytes15(p29); - console.logBytes16(p30); - console.logBytes17(p31); - console.logBytes18(p32); - console.logBytes19(p33); - console.logBytes20(p34); - console.logBytes21(p35); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/test.json deleted file mode 100644 index b392db37fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes10-bytes21/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000010", - "0x0000000000000000000011", - "0x000000000000000000000012", - "0x00000000000000000000000013", - "0x0000000000000000000000000014", - "0x000000000000000000000000000015", - "0x00000000000000000000000000000016", - "0x0000000000000000000000000000000017", - "0x000000000000000000000000000000000018", - "0x00000000000000000000000000000000000019", - "0x0000000000000000000000000000000000000020", - "0x000000000000000000000000000000000000000021" - ], - "consoleLogs": [ - ["0x00000000000000000010"], - ["0x0000000000000000000011"], - ["0x000000000000000000000012"], - ["0x00000000000000000000000013"], - ["0x0000000000000000000000000014"], - ["0x000000000000000000000000000015"], - ["0x00000000000000000000000000000016"], - ["0x0000000000000000000000000000000017"], - ["0x000000000000000000000000000000000018"], - ["0x00000000000000000000000000000000000019"], - ["0x0000000000000000000000000000000000000020"], - ["0x000000000000000000000000000000000000000021"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/c.sol deleted file mode 100644 index 490008e45a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes22 p36, bytes23 p37, bytes24 p38, bytes25 p39, bytes26 p40, bytes27 p41, - bytes28 p42, bytes29 p43, bytes30 p44, bytes31 p45, bytes32 p46 - ) public { - console.logBytes22(p36); - console.logBytes23(p37); - console.logBytes24(p38); - console.logBytes25(p39); - console.logBytes26(p40); - console.logBytes27(p41); - console.logBytes28(p42); - console.logBytes29(p43); - console.logBytes30(p44); - console.logBytes31(p45); - console.logBytes32(p46); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/test.json deleted file mode 100644 index 3882ae2b3e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/bytes22-bytes32/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000000000000000000000000000022", - "0x0000000000000000000000000000000000000000000023", - "0x000000000000000000000000000000000000000000000024", - "0x00000000000000000000000000000000000000000000000025", - "0x0000000000000000000000000000000000000000000000000026", - "0x000000000000000000000000000000000000000000000000000027", - "0x00000000000000000000000000000000000000000000000000000028", - "0x0000000000000000000000000000000000000000000000000000000029", - "0x000000000000000000000000000000000000000000000000000000000030", - "0x00000000000000000000000000000000000000000000000000000000000031", - "0x0000000000000000000000000000000000000000000000000000000000000032" - ], - "consoleLogs": [ - ["0x00000000000000000000000000000000000000000022"], - ["0x0000000000000000000000000000000000000000000023"], - ["0x000000000000000000000000000000000000000000000024"], - ["0x00000000000000000000000000000000000000000000000025"], - ["0x0000000000000000000000000000000000000000000000000026"], - ["0x000000000000000000000000000000000000000000000000000027"], - ["0x00000000000000000000000000000000000000000000000000000028"], - ["0x0000000000000000000000000000000000000000000000000000000029"], - ["0x000000000000000000000000000000000000000000000000000000000030"], - ["0x00000000000000000000000000000000000000000000000000000000000031"], - ["0x0000000000000000000000000000000000000000000000000000000000000032"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/c.sol deleted file mode 100644 index 613c5e6f80..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, bool p8, address p12, int p13, bytes memory p14, bytes1 p15, bytes2 p16, - bytes3 p17, bytes4 p18, bytes5 p19, bytes6 p20, bytes7 p21, bytes8 p22, bytes9 p23 - ) public { - console.logUint(p0); - console.logString(p4); - console.logBool(p8); - console.logAddress(p12); - console.logInt(p13); - console.logBytes(p14); - console.logBytes1(p15); - console.logBytes2(p16); - console.logBytes3(p17); - console.logBytes4(p18); - console.logBytes5(p19); - console.logBytes6(p20); - console.logBytes7(p21); - console.logBytes8(p22); - console.logBytes9(p23); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/test.json deleted file mode 100644 index dfcc39185a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/single-log/uint-bytes9/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - false, - "0x0000000000000000000000000000000000000001", - -1, - [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 - ], - "0x01", - "0x002", - "0x000003", - "0x00000004", - "0x0000000005", - "0x000000000006", - "0x00000000000007", - "0x0000000000000008", - "0x000000000000000009" - ], - "consoleLogs": [ - ["1"], - ["string1"], - ["false"], - ["0x0000000000000000000000000000000000000001"], - ["-1"], - [ - "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001" - ], - ["0x01"], - ["0x0002"], - ["0x000003"], - ["0x00000004"], - ["0x0000000005"], - ["0x000000000006"], - ["0x00000000000007"], - ["0x0000000000000008"], - ["0x000000000000000009"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/c.sol deleted file mode 100644 index 9b0fcafab8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, address p12, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p4, p12); - console.log(p4, p12, p0); - console.log(p4, p12, p5); - console.log(p4, p12, p8); - console.log(p4, p12, p13); - console.log(p4, p12, p0, p1); - console.log(p4, p12, p0, p5); - console.log(p4, p12, p0, p8); - console.log(p4, p12, p0, p13); - console.log(p4, p12, p5, p0); - console.log(p4, p12, p5, p6); - console.log(p4, p12, p5, p8); - console.log(p4, p12, p5, p13); - console.log(p4, p12, p8, p0); - console.log(p4, p12, p8, p5); - console.log(p4, p12, p8, p9); - console.log(p4, p12, p8, p13); - console.log(p4, p12, p13, p0); - console.log(p4, p12, p13, p5); - console.log(p4, p12, p13, p8); - console.log(p4, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/test.json deleted file mode 100644 index 7cfae84d03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/address/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "0x0000000000000000000000000000000000000001", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["string1", "0x0000000000000000000000000000000000000001"], - ["string1", "0x0000000000000000000000000000000000000001", "1"], - ["string1", "0x0000000000000000000000000000000000000001", "string2"], - ["string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "2"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "string2" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "string3" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/c.sol deleted file mode 100644 index 194a10f770..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, bool p8, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p4, p8); - console.log(p4, p8, p0); - console.log(p4, p8, p5); - console.log(p4, p8, p9); - console.log(p4, p8, p12); - console.log(p4, p8, p0, p1); - console.log(p4, p8, p0, p5); - console.log(p4, p8, p0, p9); - console.log(p4, p8, p0, p12); - console.log(p4, p8, p5, p0); - console.log(p4, p8, p5, p6); - console.log(p4, p8, p5, p9); - console.log(p4, p8, p5, p12); - console.log(p4, p8, p9, p0); - console.log(p4, p8, p9, p5); - console.log(p4, p8, p9, p10); - console.log(p4, p8, p9, p12); - console.log(p4, p8, p12, p0); - console.log(p4, p8, p12, p5); - console.log(p4, p8, p12, p9); - console.log(p4, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/test.json deleted file mode 100644 index 652225f26f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - false, - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "false"], - ["string1", "false", "1"], - ["string1", "false", "string2"], - ["string1", "false", "false"], - ["string1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "1", "2"], - ["string1", "false", "1", "string2"], - ["string1", "false", "1", "false"], - ["string1", "false", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "string2", "1"], - ["string1", "false", "string2", "string3"], - ["string1", "false", "string2", "false"], - [ - "string1", - "false", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "false", "1"], - ["string1", "false", "false", "string2"], - ["string1", "false", "false", "true"], - [ - "string1", - "false", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/c.sol deleted file mode 100644 index a05ddd0159..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, string memory p5, uint p0, string memory p6, bool p8, address p12, uint p1, string memory p7, bool p9, address p13 - ) public { - console.log(p4, p5); - console.log(p4, p5, p0); - console.log(p4, p5, p6); - console.log(p4, p5, p8); - console.log(p4, p5, p12); - console.log(p4, p5, p0, p1); - console.log(p4, p5, p0, p6); - console.log(p4, p5, p0, p8); - console.log(p4, p5, p0, p12); - console.log(p4, p5, p6, p0); - console.log(p4, p5, p6, p7); - console.log(p4, p5, p6, p8); - console.log(p4, p5, p6, p12); - console.log(p4, p5, p8, p0); - console.log(p4, p5, p8, p6); - console.log(p4, p5, p8, p9); - console.log(p4, p5, p8, p12); - console.log(p4, p5, p12, p0); - console.log(p4, p5, p12, p6); - console.log(p4, p5, p12, p8); - console.log(p4, p5, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/test.json deleted file mode 100644 index dc79bd77fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/string/test.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "string2", - 1, - "string3", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string4", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "string2"], - ["string1", "string2", "1"], - ["string1", "string2", "string3"], - ["string1", "string2", "false"], - ["string1", "string2", "0x0000000000000000000000000000000000000001"], - ["string1", "string2", "1", "2"], - ["string1", "string2", "1", "string3"], - ["string1", "string2", "1", "false"], - [ - "string1", - "string2", - "1", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "string3", "1"], - ["string1", "string2", "string3", "string4"], - ["string1", "string2", "string3", "false"], - [ - "string1", - "string2", - "string3", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "false", "1"], - ["string1", "string2", "false", "string3"], - ["string1", "string2", "false", "false"], - [ - "string1", - "string2", - "false", - "0x0000000000000000000000000000000000000001" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "1" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "string3" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/c.sol deleted file mode 100644 index 27bf7bd16a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, uint p0, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p4, p0); - console.log(p4, p0, p1); - console.log(p4, p0, p5); - console.log(p4, p0, p8); - console.log(p4, p0, p12); - console.log(p4, p0, p1, p2); - console.log(p4, p0, p1, p5); - console.log(p4, p0, p1, p8); - console.log(p4, p0, p1, p12); - console.log(p4, p0, p5, p1); - console.log(p4, p0, p5, p6); - console.log(p4, p0, p5, p8); - console.log(p4, p0, p5, p12); - console.log(p4, p0, p8, p1); - console.log(p4, p0, p8, p5); - console.log(p4, p0, p8, p9); - console.log(p4, p0, p8, p12); - console.log(p4, p0, p12, p1); - console.log(p4, p0, p12, p5); - console.log(p4, p0, p12, p8); - console.log(p4, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/test.json deleted file mode 100644 index 5d1961f8bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/string/uint/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - 1, - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "1"], - ["string1", "1", "2"], - ["string1", "1", "string2"], - ["string1", "1", "false"], - ["string1", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "2", "3"], - ["string1", "1", "2", "string2"], - ["string1", "1", "2", "false"], - ["string1", "1", "2", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "string2", "2"], - ["string1", "1", "string2", "string3"], - ["string1", "1", "string2", "false"], - [ - "string1", - "1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "1", "false", "2"], - ["string1", "1", "false", "string2"], - ["string1", "1", "false", "false"], - ["string1", "1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "0x0000000000000000000000000000000000000001", "2"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["string1", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/c.sol deleted file mode 100644 index 6aeccf0e2d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, address p12, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p0, p12); - console.log(p0, p12, p1); - console.log(p0, p12, p4); - console.log(p0, p12, p8); - console.log(p0, p12, p13); - console.log(p0, p12, p1, p2); - console.log(p0, p12, p1, p4); - console.log(p0, p12, p1, p8); - console.log(p0, p12, p1, p13); - console.log(p0, p12, p4, p1); - console.log(p0, p12, p4, p5); - console.log(p0, p12, p4, p8); - console.log(p0, p12, p4, p13); - console.log(p0, p12, p8, p1); - console.log(p0, p12, p8, p4); - console.log(p0, p12, p8, p9); - console.log(p0, p12, p8, p13); - console.log(p0, p12, p13, p1); - console.log(p0, p12, p13, p4); - console.log(p0, p12, p13, p8); - console.log(p0, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/test.json deleted file mode 100644 index 82472306cd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/address/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "0x0000000000000000000000000000000000000001", - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["1", "0x0000000000000000000000000000000000000001"], - ["1", "0x0000000000000000000000000000000000000001", "2"], - ["1", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "2", "3"], - ["1", "0x0000000000000000000000000000000000000001", "2", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "2", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "2"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "false", "2"], - ["1", "0x0000000000000000000000000000000000000001", "false", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/c.sol deleted file mode 100644 index 12772edac8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, bool p8, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p0, p8); - console.log(p0, p8, p1); - console.log(p0, p8, p4); - console.log(p0, p8, p9); - console.log(p0, p8, p12); - console.log(p0, p8, p1, p2); - console.log(p0, p8, p1, p4); - console.log(p0, p8, p1, p9); - console.log(p0, p8, p1, p12); - console.log(p0, p8, p4, p1); - console.log(p0, p8, p4, p5); - console.log(p0, p8, p4, p9); - console.log(p0, p8, p4, p12); - console.log(p0, p8, p9, p1); - console.log(p0, p8, p9, p4); - console.log(p0, p8, p9, p10); - console.log(p0, p8, p9, p12); - console.log(p0, p8, p12, p1); - console.log(p0, p8, p12, p4); - console.log(p0, p8, p12, p9); - console.log(p0, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/test.json deleted file mode 100644 index 794182376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/bool/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - false, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "false"], - ["1", "false", "2"], - ["1", "false", "string1"], - ["1", "false", "false"], - ["1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "2", "3"], - ["1", "false", "2", "string1"], - ["1", "false", "2", "false"], - ["1", "false", "2", "0x0000000000000000000000000000000000000001"], - ["1", "false", "string1", "2"], - ["1", "false", "string1", "string2"], - ["1", "false", "string1", "false"], - ["1", "false", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "false", "false", "2"], - ["1", "false", "false", "string1"], - ["1", "false", "false", "true"], - ["1", "false", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "0x0000000000000000000000000000000000000001", "2"], - ["1", "false", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "false", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/c.sol deleted file mode 100644 index 764ede643b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint256 p0, uint256 p1, int256 p2, int256 p3 - ) public { - console.log(p0); - console.log(p1); - console.logInt(p2); - console.logInt(p3); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/test.json deleted file mode 100644 index d4d2a2d767..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/most-significant-bit-set/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "description": "Should correctly interpret sign of integer types", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000", - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000" - ], - "consoleLogs": [ - [ - "115792089237316195423570985008687907853269984665640564039457584007913129639935" - ], - [ - "57896044618658097711785492504343953926634992332820282019728792003956564819968" - ], - ["-1"], - [ - "-57896044618658097711785492504343953926634992332820282019728792003956564819968" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/c.sol deleted file mode 100644 index 837d59b680..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p0, p4); - console.log(p0, p4, p1); - console.log(p0, p4, p5); - console.log(p0, p4, p8); - console.log(p0, p4, p12); - console.log(p0, p4, p1, p2); - console.log(p0, p4, p1, p5); - console.log(p0, p4, p1, p8); - console.log(p0, p4, p1, p12); - console.log(p0, p4, p5, p1); - console.log(p0, p4, p5, p6); - console.log(p0, p4, p5, p8); - console.log(p0, p4, p5, p12); - console.log(p0, p4, p8, p1); - console.log(p0, p4, p8, p5); - console.log(p0, p4, p8, p9); - console.log(p0, p4, p8, p12); - console.log(p0, p4, p12, p1); - console.log(p0, p4, p12, p5); - console.log(p0, p4, p12, p8); - console.log(p0, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/test.json deleted file mode 100644 index 43e758b1ef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/string/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "string1"], - ["1", "string1", "2"], - ["1", "string1", "string2"], - ["1", "string1", "false"], - ["1", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "2", "3"], - ["1", "string1", "2", "string2"], - ["1", "string1", "2", "false"], - ["1", "string1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "string2", "2"], - ["1", "string1", "string2", "string3"], - ["1", "string1", "string2", "false"], - [ - "1", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["1", "string1", "false", "2"], - ["1", "string1", "false", "string2"], - ["1", "string1", "false", "false"], - ["1", "string1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "0x0000000000000000000000000000000000000001", "2"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["1", "string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/c.sol deleted file mode 100644 index 97e5899edc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, uint p1, uint p2, string memory p4, bool p8, address p12, uint p3, string memory p5, bool p9, address p13 - ) public { - console.log(p0, p1); - console.log(p0, p1, p2); - console.log(p0, p1, p4); - console.log(p0, p1, p8); - console.log(p0, p1, p12); - console.log(p0, p1, p2, p3); - console.log(p0, p1, p2, p4); - console.log(p0, p1, p2, p8); - console.log(p0, p1, p2, p12); - console.log(p0, p1, p4, p2); - console.log(p0, p1, p4, p5); - console.log(p0, p1, p4, p8); - console.log(p0, p1, p4, p12); - console.log(p0, p1, p8, p2); - console.log(p0, p1, p8, p4); - console.log(p0, p1, p8, p9); - console.log(p0, p1, p8, p12); - console.log(p0, p1, p12, p2); - console.log(p0, p1, p12, p4); - console.log(p0, p1, p12, p8); - console.log(p0, p1, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/test.json deleted file mode 100644 index 9acbf9a04b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/console-logs/uint/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - 2, - 3, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 4, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "2"], - ["1", "2", "3"], - ["1", "2", "string1"], - ["1", "2", "false"], - ["1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "2", "3", "4"], - ["1", "2", "3", "string1"], - ["1", "2", "3", "false"], - ["1", "2", "3", "0x0000000000000000000000000000000000000001"], - ["1", "2", "string1", "3"], - ["1", "2", "string1", "string2"], - ["1", "2", "string1", "false"], - ["1", "2", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "2", "false", "3"], - ["1", "2", "false", "string1"], - ["1", "2", "false", "false"], - ["1", "2", "false", "0x0000000000000000000000000000000000000001"], - ["1", "2", "0x0000000000000000000000000000000000000001", "3"], - ["1", "2", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "2", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/c.sol deleted file mode 100644 index b82c6a23b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -function fail() { - require(false, "failure reason"); -} - -function callFail() { - fail(); -} - -contract C { - constructor() public { - callFail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/test.json deleted file mode 100644 index faa31b7017..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/constructor-calls-top-level-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "file": "c.sol", - "function": "callFail", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failure reason", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 7dbdbc1e03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index 5ae2ab8098..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 4e880a7fb7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index 6cb3e62e9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/c.sol deleted file mode 100644 index 9f89039d31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() public - { - } - - function test() public { - D d = new D{salt: 0x1234567812345678123456781234567812345678123456781234567812345678}(); - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/d.sol deleted file mode 100644 index 5aa3cabfeb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - - -contract D { - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/test.json deleted file mode 100644 index 37569e6ea0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure-with-salt/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 3626db27b3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 17b74782c6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index e2a0d48013..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 5b87c7f40e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 0607e9a58e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 54203c026a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 3626db27b3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index cb6c3a6df3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index ec13589438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index c84471eb96..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index f0247d58ab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b231c7e894..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index c84471eb96..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index edcac2df67..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 8a525b42e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index c84471eb96..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index 732ab135f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index c72ba9382f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index 88c9d26aa6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - function f() public { - } -} - -contract C { - - constructor() public { - D(0x12345678901234567890).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0d71810f4d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index 231a3a5a97..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index c473a1e37d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/c.sol deleted file mode 100644 index 16083dacc8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/test.json deleted file mode 100644 index 05d2df376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1 - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index 12715df9fc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - address(d).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index b4ae14ccb4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/test.json deleted file mode 100644 index 9c44caf79f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index 6a9e6d331a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 859e977601..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index 6a9e6d331a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - address(d).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index a2e1723a6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index b44884e089..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol deleted file mode 100644 index 2b81c4ec97..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - d.fail(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol deleted file mode 100644 index d075fe7765..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - function fail() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json deleted file mode 100644 index 72a40cd694..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol deleted file mode 100644 index ba2215222a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol deleted file mode 100644 index ccb52ae9dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - - constructor() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json deleted file mode 100644 index 769cbff030..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol deleted file mode 100644 index 88d982bab9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol deleted file mode 100644 index 3233c347b3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - fail(b); - } - - function fail(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json deleted file mode 100644 index 1f5824e46a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/c.sol deleted file mode 100644 index 88d982bab9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/d.sol deleted file mode 100644 index 6e12810e1b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/test.json deleted file mode 100644 index 736f39027d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/multiple-constructor-one-fails/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/c.sol deleted file mode 100644 index c2c926e6dd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/d.sol deleted file mode 100644 index 6ca68a31fc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor() public { - revert("D failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/test.json deleted file mode 100644 index 3b52decde0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-reverts/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol deleted file mode 100644 index ff5bd447f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol deleted file mode 100644 index d6339fe8e9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor() m public { - - } - - modifier m { - _; - fail(); - } - - function fail() internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json deleted file mode 100644 index e7fca1a8bd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol deleted file mode 100644 index c2c926e6dd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol deleted file mode 100644 index fce0e9ac8e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor() m public { - - } - - modifier m { - revert("D.m failed"); - _; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json deleted file mode 100644 index 299e3567ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "D.m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index 31d1756e97..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 1cf6a2cfaf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index 08233a83c5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index bb9d02af04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 1d29b2601a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 25bf5e4340..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index ba4768e1bc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index 03707bb638..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index 46f093c306..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 096f86ddde..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index 4e2bd3b79b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index ef49fbb2ac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index 68c1e7e6f9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/c.sol deleted file mode 100644 index fd393c2ac6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/test.json deleted file mode 100644 index 896998f464..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/assert/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 9ca35e54ed..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - constructor(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/test.json deleted file mode 100644 index 0874d4d947..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index a4d3d2961b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index a8e7dfa8db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/c.sol deleted file mode 100644 index d30c07641e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - uint immutable x = 42; - - constructor() public { - revert("asd"); - } - - function get2X() public returns (uint) { - return 2*x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/test.json deleted file mode 100644 index 0b2d4d1657..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/immutable-variable/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "skip": true, - "reason": "This code seems to trigger a bug in the compiler: https://github.com/ethereum/solidity/issues/8727", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/c.sol deleted file mode 100644 index 33cbd132c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - - -contract C { - - uint256[] a; - - constructor(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/test.json deleted file mode 100644 index cccd9082da..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/invalid-array-access/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [1], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 5614288cad..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index e1cf2ff48c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - constructor(bool b) m(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index 6831cc0ab3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index af45adc0fd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index 14bcfb7524..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 747bcd2fa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/c.sol deleted file mode 100644 index 85fb7f80f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/test.json deleted file mode 100644 index d7afbd284f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args-and-value/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/c.sol deleted file mode 100644 index 85fb7f80f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/payable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/c.sol deleted file mode 100644 index e327a83c27..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/test.json deleted file mode 100644 index e45e625f9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index b1dd5262b4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index 8ab2e07a18..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index cf471ce683..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - address(this).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index 79e10952cc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index 7633177d61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 19810db69a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/c.sol deleted file mode 100644 index 51b0aca881..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - - - revert(""); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/test.json deleted file mode 100644 index 8f1b1d7278..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/revert-without-message/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol deleted file mode 100644 index 747bcd2fa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/c.sol deleted file mode 100644 index e7f7b3cdb6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/send-value-to-nonpayable/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/c.sol deleted file mode 100644 index 8c5b3bc239..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.7.0; - -contract IgnoredC { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/test.json deleted file mode 100644 index 5230fb77cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/create-message/no-calls/unrecognized-failure/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_ERROR" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 93134301d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index a7172d52ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index e8b5d6d416..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 958a64ad7c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 5d07ab7ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index a8c829cf2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 93134301d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index a7172d52ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index e8b5d6d416..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 958a64ad7c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 5d07ab7ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index a8c829cf2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 93134301d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index c332faf5cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index a7172d52ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 2de7b9cc23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index e8b5d6d416..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f530f4be38..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 958a64ad7c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 5d07ab7ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 92b435eef8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index a8c829cf2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 93134301d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index a8ebb8ddbe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index a7172d52ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index ada9108fcf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index e8b5d6d416..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index 958a64ad7c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 5d07ab7ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index a8c829cf2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/c.sol deleted file mode 100644 index 797827184e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/c.sol +++ /dev/null @@ -1,40 +0,0 @@ -pragma solidity ^0.7.0; - -// Note: This test is pretty special and also fragile. -// It check two kinds of OOGs "chaining": -// * When an EVM message (M) OOGs, and the caller message also OOGs while checking if M OOG'd -// * When an EVM message OOGs, and the caller reverts because of that -// -// The latter case leads to a CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR, but the former just to a CALLSTACK_ENTRY. -// This test is very sensitive to the compiler being used, its settings, and the gas limit. It is known to work with -// soljson-v0.7.0+commit.9e61f92b.js, without optimizations, and 4M gas. -// -// The reason for it being so sensitive is that we can't test why CALLSTACK_ENTRYs were generated. - -contract O { - uint i = 1; - - function inc() public { - i += 1; - } - - function oog() public { - for (uint i = 0; i < 10000; i += 1) { - this.inc(); - } - } -} - -contract C { - - function test() public { - this.oog(); - } - - function oog() public { - O o = new O(); - for (uint i = 0; i < 10000; i += 1) { - o.oog(); - } - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/test.json deleted file mode 100644 index 6c150bfa2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/out-of-gas/oog-chaining/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "gas": 4000000, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 31 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "oog", - "line": 37 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "O", - "file": "c.sol", - "function": "oog", - "line": 23 - } - }, - { - "type": "CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR", - "sourceReference": { - "contract": "O", - "file": "c.sol", - "function": "inc", - "line": 18 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index 0d811bc914..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index 71cd87222f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol deleted file mode 100644 index efa104762a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m2(bool b) { - require(b); - _; - } - - function test(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index c100770a58..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index 36ac455f30..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index afb67c1ad8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol deleted file mode 100644 index d34afbbdd5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - uint i; - modifier m2(bool b) { - require(b); - _; - } - - constructor(bool b) m1(b) m2(b) public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 70e98b4b88..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index dab9ffb751..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 1841e32a65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index e6c02db274..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index e3ee178e83..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 4fd91c6772..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index 1c92e9c9ab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index 35c5d50996..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback() external { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 096f901805..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 86dc4229fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - fallback() external { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index 78d349e79f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/c.sol deleted file mode 100644 index b893bd5747..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index c37850acc9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 253611b966..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/c.sol deleted file mode 100644 index d6c0f5becd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - function test() public { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/c.sol deleted file mode 100644 index bca6c61aa0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 082a72859c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index e136fe6011..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - receive() external payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index f0122a5fa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 6662cc8528..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 35682e780e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/require-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index 7923bac342..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol deleted file mode 100644 index c96324153f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } -} - -contract C is D { - uint public j; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json deleted file mode 100644 index 83e67fa9b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index 901177a5ea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - constructor() public payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index e6c02db274..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index b6e3e4207b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index d4423f8263..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index bcf951176d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index 73d501b0fc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - fallback() external { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 096f901805..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index fe20df0298..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - fallback() external { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index 39e479133b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/c.sol deleted file mode 100644 index 341de2e7dc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index 4cc4b9beb1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - function test() public { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 253611b966..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/c.sol deleted file mode 100644 index 12727ddaea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - function test() public { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 4b8d2c3122..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index c07e823536..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index 63dcfc78a2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - receive() external payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index f0122a5fa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index cc38e70d54..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 0cf2c6fbed..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.7.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/revert-without-message/revert-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/c.sol deleted file mode 100644 index 954e2e6d80..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.7.0; - -import "./d.sol"; - -contract E { - constructor() public { - revert("E"); - } -} - - -contract C is D, E { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/d.sol deleted file mode 100644 index 6e052dd0fc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.7.0; - -contract D { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/test.json deleted file mode 100644 index e150806204..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/different-contracts-same-deployment-bytecode/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "description": "Should clash create bytecodes and resolve to D", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C and D have the same deployment bytecode because they always fail and get recognized as D", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/c.sol deleted file mode 100644 index 752cd42ebf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.7.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function proxyMessageCall(function (uint256) external returns (uint256) aFunction, uint256 aParameter) public returns (uint256) { - return aFunction(aParameter); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_7/special-cases/function-type-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/c.sol deleted file mode 100644 index c9ae16b804..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - - -import "./d.sol"; - -contract C { - function test() public { - D d = new D(); - - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/d.sol deleted file mode 100644 index 2cff044b5c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - - -contract D { - struct MyStruct { - uint x; - uint y; - } - - function fail() public returns (MyStruct[] memory) - { - revert("D failed"); - - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/test.json deleted file mode 100644 index a0403282cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/call-failing-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/c.sol deleted file mode 100644 index 84b19e1ab9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -contract C is D { - function test() public override returns (MyStruct[] memory) { - MyStruct[] memory structs = super.test(); - console.log(structs[1].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/d.sol deleted file mode 100644 index e816531bbd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - - -import "./../../../../../../../../console.sol"; -import "./d.sol"; - -struct MyStruct { - uint x; - uint y; -} - -contract D { - function test() public virtual returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0].x = 1; - structs[1].x = 2; - console.log(structs[0].x); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/test.json deleted file mode 100644 index 8249b806f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/inherits-returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [], - "consoleLogs": [["1"], ["2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/c.sol deleted file mode 100644 index 2d171cb942..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function doSomething(uint256[][] memory numbers) public returns (uint256) { - return numbers[0][0]; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/nested-arrays-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/c.sol deleted file mode 100644 index b1ffb14793..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - - -struct MyStruct { - uint x; - uint y; -} - -contract C { - function test() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(1, 2); - structs[1] = MyStruct(2, 3); - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/test.json deleted file mode 100644 index a9e57fd743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/non-payable-returns-struct/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/c.sol deleted file mode 100644 index 15e6e6df5e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.8.0; - - -import "./../../../../../../../../console.sol"; - -contract C { - struct MyStruct { - address a; - } - - function log() public { - MyStruct[] memory ms = getStructs(); - console.log(ms[0].a); - } - - function getStructs() public returns (MyStruct[] memory) { - MyStruct[] memory structs = new MyStruct[](2); - structs[0] = MyStruct(0x0000000000000000000000000000000000000001); - structs[1] = MyStruct(0x0000000000000000000000000000000000000002); - - return structs; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/test.json deleted file mode 100644 index b9555dcbda..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/abi-v2/returns-struct/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [], - "consoleLogs": [["0x0000000000000000000000000000000000000001"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/c.sol deleted file mode 100644 index 1493bd6865..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.8.0; - -contract A { - uint counter; - - function a() external { - counter++; - revert("a reason"); - } -} - -contract C { - A a = new A(); - - function test() external { - (bool ok, bytes memory data) = address(a).call(bytes(hex"0dbe671f")); - if (!ok) { - assembly { - revert(add(32, data), mload(data)) - } - } - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/test.json deleted file mode 100644 index 1165ab75c5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/asm-reverts-propagation/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 16 - } - }, - { - "type": "REVERT_ERROR", - "message": "a reason", - "sourceReference": { - "contract": "A", - "file": "c.sol", - "function": "a", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/c.sol deleted file mode 100644 index c8f0fb9bef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - d.test2(); - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/d.sol deleted file mode 100644 index de0e465cff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/test.json deleted file mode 100644 index c289401034..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/c.sol deleted file mode 100644 index 2e10fa3763..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public payable { - D d = new D(); - - d.test2{value: 2}(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/d.sol deleted file mode 100644 index 10abe3c858..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -import "./c.sol"; - -contract D { - - function test2() public payable { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/test.json deleted file mode 100644 index eca5951d4b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/call-with-value-without-funds/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/c.sol deleted file mode 100644 index abcdb09a0f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/d.sol deleted file mode 100644 index 182f23ecb2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - constructor() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/test.json deleted file mode 100644 index d71e1c0655..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/contract-creation-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 604a35cc0c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index 9ce82729c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 2f4db34c1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index bd468a347a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index 57d0847440..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 0bd96eb9d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index 7c91cc4794..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/c.sol deleted file mode 100644 index e1a3d028b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - try d.fail() {} catch { - revert("C failed"); - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/d.sol deleted file mode 100644 index 0bd96eb9d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/test.json deleted file mode 100644 index 81bb96eaea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-try-catch/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/c.sol deleted file mode 100644 index 53dcb14dbd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/d.sol deleted file mode 100644 index fb34111581..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - uint immutable x = 11; - - function get2X () public returns (uint) { - return 2*x; - } - - function fail(uint arg) public returns (uint) { - revert("D failed"); - return x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/test.json deleted file mode 100644 index 764e2d2a5d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/forward-contract-with-immutable-failure/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 8d98bc1aae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 497ebd1e00..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 40fcde2bd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/c.sol deleted file mode 100644 index 6b423f1bfb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint immutable x = 10; - - function get2X () public returns (uint) { - return 2*x; - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/test.json deleted file mode 100644 index 3899ce75ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/immutable-variable/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index 57d0847440..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index 3ae6c48afb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index fcefc18710..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index 0a8509e6ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index 1fedc3aec3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b188c07f2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index 0a8509e6ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index 55c64a5854..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 6903d2e256..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index 0a8509e6ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - function test(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index c499fdf237..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index cf6f0a2b3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - } - }, - { - "to": 1, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index df47c971b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - function f() public { - } -} - -contract C { - - function test() public { - D(address(0x12345678901234567890)).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0a47f8c5f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index 432c1ea7d4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - payable(address(d)).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index 7b04738e07..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/c.sol deleted file mode 100644 index dfd430b803..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public { - r(); - } - - function r() internal { - revert("D failed"); - } -} - -contract C { - - function forward(address implementation) internal { - assembly { - calldatacopy(0, 0, calldatasize()) - let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) - returndatacopy(0, 0, returndatasize()) - switch result - case 0 { revert(0, returndatasize()) } - default { return(0, returndatasize()) } - } - } - - fallback () external payable { - D d = new D(); - forward(address(d)); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/test.json deleted file mode 100644 index 94ea8ade31..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/proxy/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xa9cc4718", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 29 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "forward", - "line": 19 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "fail", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "r", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/c.sol deleted file mode 100644 index 805779c742..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - payable(address(d)).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/test.json deleted file mode 100644 index 0eebb2e652..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index 72293b0a80..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - D d = new D(); - payable(address(d)).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index bce0b8a1ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/test.json deleted file mode 100644 index e7b7de2410..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/c.sol deleted file mode 100644 index d2a4a61936..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/c.sol +++ /dev/null @@ -1,24 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint immutable x = 16448250; - address immutable a = 0xFEe9686eA76eCb04b8bB8E1AC29D7b1bCAeA283a; - bool immutable b = false; - - function get2X () public returns (uint) { - if (b) { - return 2*x; - } - } - - function getAddress() public returns (address) { - if (!b) { - return a; - } - } - - function test () external { - revert("C failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/test.json deleted file mode 100644 index 10a3c0f08e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/several-immutable-variables/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 21 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/c.sol deleted file mode 100644 index b73d139499..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - mapping(uint => uint) public x; - function internalFunction(mapping(uint => uint) storage m) internal pure { - revert(); - } - - function test() public { - internalFunction(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/test.json deleted file mode 100644 index e11057d991..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/storage-mapping-parameter/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 10 - }, - "functionType": 1 - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "function": "internalFunction", - "contract": "C", - "file": "c.sol", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/c.sol deleted file mode 100644 index 1a459e2cc0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.1; - -uint constant EXPONENT = 10; -uint constant MULTIPLIER = 2**EXPONENT; - -// basic test just to check that top-level constants -// don't break anything obvious -contract C { - function test() public { - require(false, "failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/test.json deleted file mode 100644 index 93e7541c08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-constants/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/c.sol deleted file mode 100644 index bddb8ba218..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.1; - -function fail() { - require(false, "top-level function failed"); -} - -contract C { - modifier m() { - fail(); - _; - } - function test() m public { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/test.json deleted file mode 100644 index 16d749aa61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-called-from-modifier/test.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/c.sol deleted file mode 100644 index 3afae861e1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.1; - -import "./d.sol"; - -contract C { - function test() public { - fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/d.sol deleted file mode 100644 index 3b6660909a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/d.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.8.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/test.json deleted file mode 100644 index f26627a870..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-different-file/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "d.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/c.sol deleted file mode 100644 index 52c8cbd0fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} - -contract C { - function test() public { - fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/test.json deleted file mode 100644 index b27a22ba2a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-function-reverts/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/c.sol deleted file mode 100644 index cb22bfbff9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.1; - -function fail() returns (uint) { - require(false, "top-level function failed"); - return 0; -} - -function callFail() returns (uint) { - return fail(); -} - -contract C { - function test() public { - callFail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/test.json deleted file mode 100644 index 1710d8e25e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/top-level-functions-chained/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 14 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "file": "c.sol", - "function": "callFail", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "top-level function failed", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index a258d99792..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - payable(address(d)).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 9206a331cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index a258d99792..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() payable public { - D d = new D(); - payable(address(d)).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index f76d0f1c6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/c.sol deleted file mode 100644 index 133224b905..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/c.sol +++ /dev/null @@ -1,21 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - D d; - - constructor () public { - d = new D(); - } - - function test1() public { - try d.fail() {} catch { - d.test2(); - } - } - - function test3() public { - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/d.sol deleted file mode 100644 index de0e465cff..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/d.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -import "./c.sol"; - -contract D { - - function test2() public { - C(msg.sender).test3(); - } - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/test.json deleted file mode 100644 index 53cabe3d05..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/try-catch-and-back-and-forth/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test1", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test1", - "line": 14 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test3", - "line": 19 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol deleted file mode 100644 index 7c3acd91a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol deleted file mode 100644 index 54ab1d6e1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/d.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - -// Contracts starting with Ignored -// are ignored by the tracer -contract IgnoredD { - - function fail() public { - D d = new D(); - d.fail(); - } - -} - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json deleted file mode 100644 index 939334a8f0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/recognized-failure/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 17 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol deleted file mode 100644 index 7c3acd91a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - function test() public { - IgnoredD d = new IgnoredD(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol deleted file mode 100644 index 2bc4cb59f9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract IgnoredD { - - function fail() public returns (uint) { - revert("IngoredD failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json deleted file mode 100644 index 83d7bb3471..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/external-calls/unrecognized-contracts/unrecognized-failure/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "IngoredD failed" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/c.sol deleted file mode 100644 index 735092ba65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/d.sol deleted file mode 100644 index 61af8ae8e7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - fallback () external { - revert("inherited fallback"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/test.json deleted file mode 100644 index 27fbeb065e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited fallback", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/c.sol deleted file mode 100644 index 735092ba65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/d.sol deleted file mode 100644 index 25df6beda9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - modifier fail { - revert("inherited function with modifier"); - _; - } - - function test() fail external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/test.json deleted file mode 100644 index b17a8fa09a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited function with modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/c.sol deleted file mode 100644 index 3c94aaf93a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - - function test() fail external { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/d.sol deleted file mode 100644 index 11b34906fc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - modifier fail { - revert("inherited modifier"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/test.json deleted file mode 100644 index 683a3c985f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "inherited modifier", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/c.sol deleted file mode 100644 index 735092ba65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/d.sol deleted file mode 100644 index d94244bbd3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - fallback () external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/test.json deleted file mode 100644 index 11f162917b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-fallback/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/c.sol deleted file mode 100644 index 735092ba65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/d.sol deleted file mode 100644 index 6b881639be..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function test() external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/test.json deleted file mode 100644 index 205b5d6d37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-nonpayable-function/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/c.sol deleted file mode 100644 index 735092ba65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/d.sol deleted file mode 100644 index 421080a019..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () external payable { - revert("inherited receive"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/test.json deleted file mode 100644 index a6950faaab..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/inherited-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "inherited receive", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/c.sol deleted file mode 100644 index 9578b1f43b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/d.sol deleted file mode 100644 index 241701a281..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./e.sol"; - -contract D is E { - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/e.sol deleted file mode 100644 index 33d29d841e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/e.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract E { - - function test() public virtual { - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/test.json deleted file mode 100644 index 976bd39194..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-skiping-parent/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "C", - "file": "e.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/c.sol deleted file mode 100644 index 9578b1f43b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/d.sol deleted file mode 100644 index 2b98e9fdf8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function test() m public virtual { - } - - modifier m { - revert("m failed"); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/test.json deleted file mode 100644 index 481e2c24a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call-with-modifier-failure/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/c.sol deleted file mode 100644 index 9578b1f43b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - - function test() public override { - super.test(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/d.sol deleted file mode 100644 index cfcfbec558..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function test() public virtual { - revert("failed from super"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/test.json deleted file mode 100644 index 0eb6ca4b9f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/inheritance/super-call/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failed from super", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index 8d9b8ce104..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 9a44213375..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index 45ba0b2bd8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index 27dfceeba7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 686941120f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 1b5711a70d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/c.sol deleted file mode 100644 index 28309dff1a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - modifier mod { - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/test.json deleted file mode 100644 index 382751c049..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-function-with-modifier/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 2c488aa61f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index c232fb9665..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index 7651497dd5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 9e2b8d01a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index da32c1f539..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index 30972741e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index 2bc1188c8f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/c.sol deleted file mode 100644 index 2099fe6bf9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(uint i) public { - if (i > 0) { - test(i - 1); - } - - revert("base case"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/test.json deleted file mode 100644 index 208b2804a0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/internal-calls/recursive-call/test.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [2], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - }, - { - "type": "REVERT_ERROR", - "message": "base case", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/c.sol deleted file mode 100644 index f982b18f6c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(address payable a) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/test.json deleted file mode 100644 index 42c4c0f0f3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/address-payable-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xbb29998e", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/c.sol deleted file mode 100644 index 6f6fee5c4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - - - function test(bool b) public { - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/test.json deleted file mode 100644 index f759c9b186..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/assert/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/c.sol deleted file mode 100644 index 20c1ff9980..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/c.sol +++ /dev/null @@ -1,27 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - function f() public returns (bool) { - return false; - } -} - -interface I { - function f() external returns (uint); -} - -contract C { - - function test() public { - fail(new D()); - } - - function fail(D d) public { - require(d.f(), "D.f returned false"); - } - - function fail2(I i) public { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/test.json deleted file mode 100644 index 9a39e71f4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/contract-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x0cad6d76", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail2", - "line": 23 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/c.sol deleted file mode 100644 index 1badc25078..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - error CustomError(); - - function test(bool b) m1(b) public { - revert CustomError(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/test.json deleted file mode 100644 index 40c2a1a817..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/custom-error-after-modifier/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "solc": "^0.8.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CUSTOM_ERROR", - "message": "reverted with custom error 'CustomError()'", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/c.sol deleted file mode 100644 index 85b40d5327..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/test.json deleted file mode 100644 index 8d1211b1d0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-existing-function/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "function": "f", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/c.sol deleted file mode 100644 index 7dad931239..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function f() internal returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/test.json deleted file mode 100644 index f2c17f5f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-internal-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff0", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/c.sol deleted file mode 100644 index 85b40d5327..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function f() public returns (uint) { - return 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/test.json deleted file mode 100644 index df1d3fb945..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/direct-library-call-non-existing-function/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "L" - }, - { - "to": 0, - "data": "0x26121ff1", - "stackTrace": [ - { - "type": "DIRECT_LIBRARY_CALL_ERROR", - "sourceReference": { - "contract": "L", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index fbee05d1d1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - function test(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/test.json deleted file mode 100644 index f94133cd35..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/c.sol deleted file mode 100644 index 87cb8eb481..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - enum E { - YES, - NO - } -} - -contract C is D { - - function test(E e) public { - assert(e == E.YES); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/test.json deleted file mode 100644 index c5fd0fa16d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/enum-as-argument/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf1820bdc", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index 4ee2d2ea51..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index 0574360fa8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/c.sol deleted file mode 100644 index 37d0122bf4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/test.json deleted file mode 100644 index 769d6143b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-with-selector/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/c.sol deleted file mode 100644 index fbf3cfb42c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - - fallback () external { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/test.json deleted file mode 100644 index 5bc2c08114..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/fallback-non-payable-without-selector/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/c.sol deleted file mode 100644 index df014c7ad2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/test.json deleted file mode 100644 index aa05c48e86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/function-non-payable/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "function": "test", - "params": [], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/c.sol deleted file mode 100644 index 622ed05ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-array-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/c.sol deleted file mode 100644 index 6164c232c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/test.json deleted file mode 100644 index f4a85d9797..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol deleted file mode 100644 index 3a527c5101..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json deleted file mode 100644 index b42f4337a4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/funds-to-public-multiple-mapping-access/test.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "value": 1, - "params": [0, 0, 0], - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - }, - "value": 1 - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/c.sol deleted file mode 100644 index 18677ec2ba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - uint256[] a; - - function test(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/test.json deleted file mode 100644 index 0f7550e3a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-internal-array-access/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [1], - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "32", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/c.sol deleted file mode 100644 index b67231dcb3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - uint256[] public a; - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/test.json deleted file mode 100644 index 647b1a9326..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/invalid-public-array-access/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "a", - "params": [0], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/c.sol deleted file mode 100644 index 30902121a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - error CustomError(); - - modifier m(bool b) { - revert CustomError(); - _; - } - - function test(bool b) m(b) public { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/test.json deleted file mode 100644 index bf675cc6f5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-custom-error-before/test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "solc": "^0.8.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "CUSTOM_ERROR", - "message": "reverted with custom error 'CustomError()'", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index 98186b4744..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - function test(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index 3e00e0e044..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index e6df64373f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - function test(bool b) m(b) public { - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index ea8d8e67af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 70e0627583..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index be38ddf7e7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - function test(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/c.sol deleted file mode 100644 index 7982425355..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/test.json deleted file mode 100644 index dbea0884fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/no-fallback-nor-selector/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/c.sol deleted file mode 100644 index e9f88fe20f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - function test() public { - } - - function test(uint x) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/test.json deleted file mode 100644 index 02ba2e0743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/overloaded-function-params-error/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x29e99f07", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/c.sol deleted file mode 100644 index 76e63e785d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(bool b) m1(b) public { - assert(false); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/test.json deleted file mode 100644 index 0a99d76f6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/panic-after-modifier/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/c.sol deleted file mode 100644 index 622ed05ff1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - uint[] public a; - - constructor() public { - a.push(0); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-array-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 6164c232c7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - mapping(uint => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/test.json deleted file mode 100644 index f87f584365..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xf0fdf834", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/c.sol deleted file mode 100644 index 4192cf977b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - mapping(C => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/test.json deleted file mode 100644 index 99161eeb3d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-contract/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xc68d81e0", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/c.sol deleted file mode 100644 index 1d34fc11b4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - enum E { - A, - B - } - - mapping(E => uint) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/test.json deleted file mode 100644 index 631a370283..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-mapping-with-user-defined-keytype-enum/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x2a500b7f", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol deleted file mode 100644 index 3a527c5101..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - mapping(uint => mapping(uint8 => mapping(int => uint))) public a; - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json deleted file mode 100644 index 6c9ac4b106..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/public-multiple-mapping-access-with-invalid-args/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0x1a804602", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "a", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/c.sol deleted file mode 100644 index 4dfb6afa52..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/test.json deleted file mode 100644 index a33715441b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 5aae5cd662..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index d87f4cf7a8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index f964195618..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - payable(address(this)).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index e25de31880..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/c.sol deleted file mode 100644 index a1d957ed16..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/test.json deleted file mode 100644 index 79fc3db639..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-fallback/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/c.sol deleted file mode 100644 index 98f6f7abf2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - receive () external payable { - revert("some error"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/test.json deleted file mode 100644 index b6d3170449..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message-in-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "some error", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index bd7ccad835..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 4af6d776ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/call-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/c.sol deleted file mode 100644 index 5fc2424fcd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, address p13, uint p0, string memory p4, bool p8, address p14, uint p1, string memory p5, bool p9 - ) public { - console.log(p12, p13); - console.log(p12, p13, p0); - console.log(p12, p13, p4); - console.log(p12, p13, p8); - console.log(p12, p13, p14); - console.log(p12, p13, p0, p1); - console.log(p12, p13, p0, p4); - console.log(p12, p13, p0, p8); - console.log(p12, p13, p0, p14); - console.log(p12, p13, p4, p0); - console.log(p12, p13, p4, p5); - console.log(p12, p13, p4, p8); - console.log(p12, p13, p4, p14); - console.log(p12, p13, p8, p0); - console.log(p12, p13, p8, p4); - console.log(p12, p13, p8, p9); - console.log(p12, p13, p8, p14); - console.log(p12, p13, p14, p0); - console.log(p12, p13, p14, p4); - console.log(p12, p13, p14, p8); - console.log(p12, p13, p14, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/test.json deleted file mode 100644 index 09b833fffb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/address/test.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000003", - 2, - "string2", - false - ], - "consoleLogs": [ - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false", - "0x0000000000000000000000000000000000000003" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/c.sol deleted file mode 100644 index 02cba36c05..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, bool p8, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p12, p8); - console.log(p12, p8, p0); - console.log(p12, p8, p4); - console.log(p12, p8, p9); - console.log(p12, p8, p13); - console.log(p12, p8, p0, p1); - console.log(p12, p8, p0, p4); - console.log(p12, p8, p0, p9); - console.log(p12, p8, p0, p13); - console.log(p12, p8, p4, p0); - console.log(p12, p8, p4, p5); - console.log(p12, p8, p4, p9); - console.log(p12, p8, p4, p13); - console.log(p12, p8, p9, p0); - console.log(p12, p8, p9, p4); - console.log(p12, p8, p9, p10); - console.log(p12, p8, p9, p13); - console.log(p12, p8, p13, p0); - console.log(p12, p8, p13, p4); - console.log(p12, p8, p13, p9); - console.log(p12, p8, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/test.json deleted file mode 100644 index 6ce83ccdba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/bool/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - false, - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "false"], - ["0x0000000000000000000000000000000000000001", "false", "1"], - ["0x0000000000000000000000000000000000000001", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "1", "2"], - ["0x0000000000000000000000000000000000000001", "false", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "false", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "string1", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "false", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "true" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/c.sol deleted file mode 100644 index 21a3005ada..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, string memory p4, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p12, p4); - console.log(p12, p4, p0); - console.log(p12, p4, p5); - console.log(p12, p4, p8); - console.log(p12, p4, p13); - console.log(p12, p4, p0, p1); - console.log(p12, p4, p0, p5); - console.log(p12, p4, p0, p8); - console.log(p12, p4, p0, p13); - console.log(p12, p4, p5, p0); - console.log(p12, p4, p5, p6); - console.log(p12, p4, p5, p8); - console.log(p12, p4, p5, p13); - console.log(p12, p4, p8, p0); - console.log(p12, p4, p8, p5); - console.log(p12, p4, p8, p9); - console.log(p12, p4, p8, p13); - console.log(p12, p4, p13, p0); - console.log(p12, p4, p13, p5); - console.log(p12, p4, p13, p8); - console.log(p12, p4, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/test.json deleted file mode 100644 index 59df3da678..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/string/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "string1"], - ["0x0000000000000000000000000000000000000001", "string1", "1"], - ["0x0000000000000000000000000000000000000001", "string1", "string2"], - ["0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "string1", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "string3" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "string1", "false", "1"], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/c.sol deleted file mode 100644 index efe6598c9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - address p12, uint p0, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p12, p0); - console.log(p12, p0, p1); - console.log(p12, p0, p4); - console.log(p12, p0, p8); - console.log(p12, p0, p13); - console.log(p12, p0, p1, p2); - console.log(p12, p0, p1, p4); - console.log(p12, p0, p1, p8); - console.log(p12, p0, p1, p13); - console.log(p12, p0, p4, p1); - console.log(p12, p0, p4, p5); - console.log(p12, p0, p4, p8); - console.log(p12, p0, p4, p13); - console.log(p12, p0, p8, p1); - console.log(p12, p0, p8, p4); - console.log(p12, p0, p8, p9); - console.log(p12, p0, p8, p13); - console.log(p12, p0, p13, p1); - console.log(p12, p0, p13, p4); - console.log(p12, p0, p13, p8); - console.log(p12, p0, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/test.json deleted file mode 100644 index fd89352f65..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/address/uint/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000001", - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000001", "1"], - ["0x0000000000000000000000000000000000000001", "1", "2"], - ["0x0000000000000000000000000000000000000001", "1", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "2", "3"], - ["0x0000000000000000000000000000000000000001", "1", "2", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "2", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "2"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "string2" - ], - ["0x0000000000000000000000000000000000000001", "1", "string1", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["0x0000000000000000000000000000000000000001", "1", "false", "2"], - ["0x0000000000000000000000000000000000000001", "1", "false", "string1"], - ["0x0000000000000000000000000000000000000001", "1", "false", "false"], - [ - "0x0000000000000000000000000000000000000001", - "1", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/c.sol deleted file mode 100644 index 6ee70393c1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, address p12, uint p0, string memory p4, bool p9, address p13, uint p1, string memory p5, bool p10, address p14 - ) public { - console.log(p8, p12); - console.log(p8, p12, p0); - console.log(p8, p12, p4); - console.log(p8, p12, p9); - console.log(p8, p12, p13); - console.log(p8, p12, p0, p1); - console.log(p8, p12, p0, p4); - console.log(p8, p12, p0, p9); - console.log(p8, p12, p0, p13); - console.log(p8, p12, p4, p0); - console.log(p8, p12, p4, p5); - console.log(p8, p12, p4, p9); - console.log(p8, p12, p4, p13); - console.log(p8, p12, p9, p0); - console.log(p8, p12, p9, p4); - console.log(p8, p12, p9, p10); - console.log(p8, p12, p9, p13); - console.log(p8, p12, p13, p0); - console.log(p8, p12, p13, p4); - console.log(p8, p12, p13, p9); - console.log(p8, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/test.json deleted file mode 100644 index 1173a8deba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/address/test.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "0x0000000000000000000000000000000000000001", - 1, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string2", - true, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["false", "0x0000000000000000000000000000000000000001"], - ["false", "0x0000000000000000000000000000000000000001", "1"], - ["false", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "1", "2"], - ["false", "0x0000000000000000000000000000000000000001", "1", "string1"], - ["false", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "string1", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["false", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "true" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/c.sol deleted file mode 100644 index 3fe39647ef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, bool p9, uint p0, string memory p4, bool p10, address p12, uint p1, string memory p5, bool p11, address p13 - ) public { - console.log(p8, p9); - console.log(p8, p9, p0); - console.log(p8, p9, p4); - console.log(p8, p9, p10); - console.log(p8, p9, p12); - console.log(p8, p9, p0, p1); - console.log(p8, p9, p0, p4); - console.log(p8, p9, p0, p10); - console.log(p8, p9, p0, p12); - console.log(p8, p9, p4, p0); - console.log(p8, p9, p4, p5); - console.log(p8, p9, p4, p10); - console.log(p8, p9, p4, p12); - console.log(p8, p9, p10, p0); - console.log(p8, p9, p10, p4); - console.log(p8, p9, p10, p11); - console.log(p8, p9, p10, p12); - console.log(p8, p9, p12, p0); - console.log(p8, p9, p12, p4); - console.log(p8, p9, p12, p10); - console.log(p8, p9, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/test.json deleted file mode 100644 index 20fa99d1f2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - false, - 1, - "string1", - true, - "0x0000000000000000000000000000000000000001", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "false"], - ["false", "false", "1"], - ["false", "false", "string1"], - ["false", "false", "true"], - ["false", "false", "0x0000000000000000000000000000000000000001"], - ["false", "false", "1", "2"], - ["false", "false", "1", "string1"], - ["false", "false", "1", "true"], - ["false", "false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "false", "string1", "1"], - ["false", "false", "string1", "string2"], - ["false", "false", "string1", "true"], - [ - "false", - "false", - "string1", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "true", "1"], - ["false", "false", "true", "string1"], - ["false", "false", "true", "false"], - [ - "false", - "false", - "true", - "0x0000000000000000000000000000000000000001" - ], - ["false", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "string1" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "true" - ], - [ - "false", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/c.sol deleted file mode 100644 index 964d23cc32..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, string memory p4, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p8, p4); - console.log(p8, p4, p0); - console.log(p8, p4, p5); - console.log(p8, p4, p9); - console.log(p8, p4, p12); - console.log(p8, p4, p0, p1); - console.log(p8, p4, p0, p5); - console.log(p8, p4, p0, p9); - console.log(p8, p4, p0, p12); - console.log(p8, p4, p5, p0); - console.log(p8, p4, p5, p6); - console.log(p8, p4, p5, p9); - console.log(p8, p4, p5, p12); - console.log(p8, p4, p9, p0); - console.log(p8, p4, p9, p5); - console.log(p8, p4, p9, p10); - console.log(p8, p4, p9, p12); - console.log(p8, p4, p12, p0); - console.log(p8, p4, p12, p5); - console.log(p8, p4, p12, p9); - console.log(p8, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/test.json deleted file mode 100644 index 9d49738b23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/string/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - "string1", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "string1"], - ["false", "string1", "1"], - ["false", "string1", "string2"], - ["false", "string1", "false"], - ["false", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "1", "2"], - ["false", "string1", "1", "string2"], - ["false", "string1", "1", "false"], - ["false", "string1", "1", "0x0000000000000000000000000000000000000001"], - ["false", "string1", "string2", "1"], - ["false", "string1", "string2", "string3"], - ["false", "string1", "string2", "false"], - [ - "false", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "false", "1"], - ["false", "string1", "false", "string2"], - ["false", "string1", "false", "true"], - [ - "false", - "string1", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["false", "string1", "0x0000000000000000000000000000000000000001", "1"], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "false", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/c.sol deleted file mode 100644 index 357aa50b32..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bool p8, uint p0, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p8, p0); - console.log(p8, p0, p1); - console.log(p8, p0, p4); - console.log(p8, p0, p9); - console.log(p8, p0, p12); - console.log(p8, p0, p1, p2); - console.log(p8, p0, p1, p4); - console.log(p8, p0, p1, p9); - console.log(p8, p0, p1, p12); - console.log(p8, p0, p4, p1); - console.log(p8, p0, p4, p5); - console.log(p8, p0, p4, p9); - console.log(p8, p0, p4, p12); - console.log(p8, p0, p9, p1); - console.log(p8, p0, p9, p4); - console.log(p8, p0, p9, p10); - console.log(p8, p0, p9, p12); - console.log(p8, p0, p12, p1); - console.log(p8, p0, p12, p4); - console.log(p8, p0, p12, p9); - console.log(p8, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/test.json deleted file mode 100644 index 0b83cdc2ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/bool/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - false, - 1, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["false", "1"], - ["false", "1", "2"], - ["false", "1", "string1"], - ["false", "1", "false"], - ["false", "1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "2", "3"], - ["false", "1", "2", "string1"], - ["false", "1", "2", "false"], - ["false", "1", "2", "0x0000000000000000000000000000000000000001"], - ["false", "1", "string1", "2"], - ["false", "1", "string1", "string2"], - ["false", "1", "string1", "false"], - ["false", "1", "string1", "0x0000000000000000000000000000000000000001"], - ["false", "1", "false", "2"], - ["false", "1", "false", "string1"], - ["false", "1", "false", "true"], - ["false", "1", "false", "0x0000000000000000000000000000000000000001"], - ["false", "1", "0x0000000000000000000000000000000000000001", "2"], - ["false", "1", "0x0000000000000000000000000000000000000001", "string1"], - ["false", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "false", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/c.sol deleted file mode 100644 index b594629818..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/test.json deleted file mode 100644 index 9f3eb46f5b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/not-reverting/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it doesn't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/c.sol deleted file mode 100644 index ce0cc7b896..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - constructor() public { - console.log("C"); - revert(""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/test.json deleted file mode 100644 index 712dbc0050..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/contract-creation/reverting/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "description": "Should output console.log on contract creation event if it reverts", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C"]], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/c.sol deleted file mode 100644 index 9613d20348..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test(bool b) public { - console.log("string1"); - assert(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/test.json deleted file mode 100644 index 9712dc2788..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/assert/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "params": [false], - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["string1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/c.sol deleted file mode 100644 index 6a65835d8e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function test() public { - console.log(1); - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/test.json deleted file mode 100644 index 2a9abc0b70..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/error/revert/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ], - "consoleLogs": [["1"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/c.sol deleted file mode 100644 index 3918a81abb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -function log() { - console.log("log from top-level function"); -} - -contract C { - function test() public { - log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/test.json deleted file mode 100644 index 49e82d8e46..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/log-in-top-level-function/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "consoleLogs": [["log from top-level function"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/c.sol deleted file mode 100644 index d714c17132..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract D { - constructor() public { - console.log("D"); - } -} - -contract C { - - constructor() public { - console.log("C1"); - new D(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/test.json deleted file mode 100644 index 2be7464f87..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/multiple-creates/test.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "Should output console.log of other contracts in their constructor", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/c.sol deleted file mode 100644 index 1df5cc8e03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - console.log("C2"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/test.json deleted file mode 100644 index cdda420be8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/not-reverting/test.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they don't revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"], ["C2"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/c.sol deleted file mode 100644 index 01735e85af..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract D { - function f() public { - console.log("D"); - revert(""); - } -} - -contract C { - - function f() public { - console.log("C1"); - D d = new D(); - d.f(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/test.json deleted file mode 100644 index ddccb5c54c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/multiple-messages/reverting/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output console.log of other contracts if they revert", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "f", - "params": [], - "consoleLogs": [["C1"], ["D"]], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 17 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "D", - "file": "c.sol", - "function": "f", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/c.sol deleted file mode 100644 index 66621bd27a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../console.sol"; - -contract C { - - function log() public { - console.log(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/test.json deleted file mode 100644 index 0b53a189fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/no-params/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "consoleLogs": [[]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/c.sol deleted file mode 100644 index 331c31962e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log(bytes32 p46) public { - console.logBytes32(p46); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/test.json deleted file mode 100644 index 3a79eada51..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes-32/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x0000000000000000000000000000000000000000000000000000000000000032" - ], - "consoleLogs": [ - ["0x0000000000000000000000000000000000000000000000000000000000000032"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/c.sol deleted file mode 100644 index 13876d4154..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes1 p15, bytes2 p16, bytes3 p17, bytes4 p18, bytes5 p19, bytes6 p20, bytes7 p21, bytes8 p22, bytes9 p23 - ) public { - console.logBytes1(p15); - console.logBytes2(p16); - console.logBytes3(p17); - console.logBytes4(p18); - console.logBytes5(p19); - console.logBytes6(p20); - console.logBytes7(p21); - console.logBytes8(p22); - console.logBytes9(p23); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/test.json deleted file mode 100644 index 2edabd4d60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes1-bytes-9/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x01", - "0x002", - "0x000003", - "0x00000004", - "0x0000000005", - "0x000000000006", - "0x00000000000007", - "0x0000000000000008", - "0x000000000000000009" - ], - "consoleLogs": [ - ["0x01"], - ["0x0002"], - ["0x000003"], - ["0x00000004"], - ["0x0000000005"], - ["0x000000000006"], - ["0x00000000000007"], - ["0x0000000000000008"], - ["0x000000000000000009"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/c.sol deleted file mode 100644 index d943115f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes10 p24, bytes11 p25, bytes12 p26, bytes13 p27, bytes14 p28, bytes15 p29, - bytes16 p30, bytes17 p31, bytes18 p32, bytes19 p33, bytes20 p34 - ) public { - console.logBytes10(p24); - console.logBytes11(p25); - console.logBytes12(p26); - console.logBytes13(p27); - console.logBytes14(p28); - console.logBytes15(p29); - console.logBytes16(p30); - console.logBytes17(p31); - console.logBytes18(p32); - console.logBytes19(p33); - console.logBytes20(p34); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/test.json deleted file mode 100644 index d88f4741bd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes10-bytes20/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x00000000000000000010", - "0x0000000000000000000011", - "0x000000000000000000000012", - "0x00000000000000000000000013", - "0x0000000000000000000000000014", - "0x000000000000000000000000000015", - "0x00000000000000000000000000000016", - "0x0000000000000000000000000000000017", - "0x000000000000000000000000000000000018", - "0x00000000000000000000000000000000000019", - "0x0000000000000000000000000000000000000020" - ], - "consoleLogs": [ - ["0x00000000000000000010"], - ["0x0000000000000000000011"], - ["0x000000000000000000000012"], - ["0x00000000000000000000000013"], - ["0x0000000000000000000000000014"], - ["0x000000000000000000000000000015"], - ["0x00000000000000000000000000000016"], - ["0x0000000000000000000000000000000017"], - ["0x000000000000000000000000000000000018"], - ["0x00000000000000000000000000000000000019"], - ["0x0000000000000000000000000000000000000020"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/c.sol deleted file mode 100644 index 3c48f204a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/c.sol +++ /dev/null @@ -1,23 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - bytes21 p35, bytes22 p36, bytes23 p37, bytes24 p38, bytes25 p39, bytes26 p40, - bytes27 p41, bytes28 p42, bytes29 p43, bytes30 p44, bytes31 p45 - ) public { - console.logBytes21(p35); - console.logBytes22(p36); - console.logBytes23(p37); - console.logBytes24(p38); - console.logBytes25(p39); - console.logBytes26(p40); - console.logBytes27(p41); - console.logBytes28(p42); - console.logBytes29(p43); - console.logBytes30(p44); - console.logBytes31(p45); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/test.json deleted file mode 100644 index 7ef320ca51..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/bytes21-bytes31/test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0x000000000000000000000000000000000000000021", - "0x00000000000000000000000000000000000000000022", - "0x0000000000000000000000000000000000000000000023", - "0x000000000000000000000000000000000000000000000024", - "0x00000000000000000000000000000000000000000000000025", - "0x0000000000000000000000000000000000000000000000000026", - "0x000000000000000000000000000000000000000000000000000027", - "0x00000000000000000000000000000000000000000000000000000028", - "0x0000000000000000000000000000000000000000000000000000000029", - "0x000000000000000000000000000000000000000000000000000000000030", - "0x00000000000000000000000000000000000000000000000000000000000031" - ], - "consoleLogs": [ - ["0x000000000000000000000000000000000000000021"], - ["0x00000000000000000000000000000000000000000022"], - ["0x0000000000000000000000000000000000000000000023"], - ["0x000000000000000000000000000000000000000000000024"], - ["0x00000000000000000000000000000000000000000000000025"], - ["0x0000000000000000000000000000000000000000000000000026"], - ["0x000000000000000000000000000000000000000000000000000027"], - ["0x00000000000000000000000000000000000000000000000000000028"], - ["0x0000000000000000000000000000000000000000000000000000000029"], - ["0x000000000000000000000000000000000000000000000000000000000030"], - ["0x00000000000000000000000000000000000000000000000000000000000031"] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/c.sol deleted file mode 100644 index 3f2e4c94be..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, bool p8, address p12, int p13, bytes memory p14 - ) public { - console.logUint(p0); - console.logString(p4); - console.logBool(p8); - console.logAddress(p12); - console.logInt(p13); - console.logBytes(p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/test.json deleted file mode 100644 index fc9026e002..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/single-log/uint-bytes/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - false, - "0x0000000000000000000000000000000000000001", - -1, - [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 - ] - ], - "consoleLogs": [ - ["1"], - ["string1"], - ["false"], - ["0x0000000000000000000000000000000000000001"], - ["-1"], - [ - "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/c.sol deleted file mode 100644 index f52e6045d8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, address p12, uint p0, string memory p5, bool p8, address p13, uint p1, string memory p6, bool p9, address p14 - ) public { - console.log(p4, p12); - console.log(p4, p12, p0); - console.log(p4, p12, p5); - console.log(p4, p12, p8); - console.log(p4, p12, p13); - console.log(p4, p12, p0, p1); - console.log(p4, p12, p0, p5); - console.log(p4, p12, p0, p8); - console.log(p4, p12, p0, p13); - console.log(p4, p12, p5, p0); - console.log(p4, p12, p5, p6); - console.log(p4, p12, p5, p8); - console.log(p4, p12, p5, p13); - console.log(p4, p12, p8, p0); - console.log(p4, p12, p8, p5); - console.log(p4, p12, p8, p9); - console.log(p4, p12, p8, p13); - console.log(p4, p12, p13, p0); - console.log(p4, p12, p13, p5); - console.log(p4, p12, p13, p8); - console.log(p4, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/test.json deleted file mode 100644 index 7cfae84d03..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/address/test.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "0x0000000000000000000000000000000000000001", - 1, - "string2", - false, - "0x0000000000000000000000000000000000000002", - 2, - "string3", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["string1", "0x0000000000000000000000000000000000000001"], - ["string1", "0x0000000000000000000000000000000000000001", "1"], - ["string1", "0x0000000000000000000000000000000000000001", "string2"], - ["string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "2"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "string2" - ], - ["string1", "0x0000000000000000000000000000000000000001", "1", "false"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "1", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "string3" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "string2", - "0x0000000000000000000000000000000000000002" - ], - ["string1", "0x0000000000000000000000000000000000000001", "false", "1"], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "1" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string2" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/c.sol deleted file mode 100644 index 3942408f3b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, bool p8, uint p0, string memory p5, bool p9, address p12, uint p1, string memory p6, bool p10, address p13 - ) public { - console.log(p4, p8); - console.log(p4, p8, p0); - console.log(p4, p8, p5); - console.log(p4, p8, p9); - console.log(p4, p8, p12); - console.log(p4, p8, p0, p1); - console.log(p4, p8, p0, p5); - console.log(p4, p8, p0, p9); - console.log(p4, p8, p0, p12); - console.log(p4, p8, p5, p0); - console.log(p4, p8, p5, p6); - console.log(p4, p8, p5, p9); - console.log(p4, p8, p5, p12); - console.log(p4, p8, p9, p0); - console.log(p4, p8, p9, p5); - console.log(p4, p8, p9, p10); - console.log(p4, p8, p9, p12); - console.log(p4, p8, p12, p0); - console.log(p4, p8, p12, p5); - console.log(p4, p8, p12, p9); - console.log(p4, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/test.json deleted file mode 100644 index 652225f26f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/bool/test.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - false, - 1, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string3", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "false"], - ["string1", "false", "1"], - ["string1", "false", "string2"], - ["string1", "false", "false"], - ["string1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "1", "2"], - ["string1", "false", "1", "string2"], - ["string1", "false", "1", "false"], - ["string1", "false", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "false", "string2", "1"], - ["string1", "false", "string2", "string3"], - ["string1", "false", "string2", "false"], - [ - "string1", - "false", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "false", "1"], - ["string1", "false", "false", "string2"], - ["string1", "false", "false", "true"], - [ - "string1", - "false", - "false", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "false", "0x0000000000000000000000000000000000000001", "1"], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "string2" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/c.sol deleted file mode 100644 index c27cc41847..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, string memory p5, uint p0, string memory p6, bool p8, address p12, uint p1, string memory p7, bool p9, address p13 - ) public { - console.log(p4, p5); - console.log(p4, p5, p0); - console.log(p4, p5, p6); - console.log(p4, p5, p8); - console.log(p4, p5, p12); - console.log(p4, p5, p0, p1); - console.log(p4, p5, p0, p6); - console.log(p4, p5, p0, p8); - console.log(p4, p5, p0, p12); - console.log(p4, p5, p6, p0); - console.log(p4, p5, p6, p7); - console.log(p4, p5, p6, p8); - console.log(p4, p5, p6, p12); - console.log(p4, p5, p8, p0); - console.log(p4, p5, p8, p6); - console.log(p4, p5, p8, p9); - console.log(p4, p5, p8, p12); - console.log(p4, p5, p12, p0); - console.log(p4, p5, p12, p6); - console.log(p4, p5, p12, p8); - console.log(p4, p5, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/test.json deleted file mode 100644 index dc79bd77fa..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/string/test.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - "string2", - 1, - "string3", - false, - "0x0000000000000000000000000000000000000001", - 2, - "string4", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "string2"], - ["string1", "string2", "1"], - ["string1", "string2", "string3"], - ["string1", "string2", "false"], - ["string1", "string2", "0x0000000000000000000000000000000000000001"], - ["string1", "string2", "1", "2"], - ["string1", "string2", "1", "string3"], - ["string1", "string2", "1", "false"], - [ - "string1", - "string2", - "1", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "string3", "1"], - ["string1", "string2", "string3", "string4"], - ["string1", "string2", "string3", "false"], - [ - "string1", - "string2", - "string3", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "string2", "false", "1"], - ["string1", "string2", "false", "string3"], - ["string1", "string2", "false", "false"], - [ - "string1", - "string2", - "false", - "0x0000000000000000000000000000000000000001" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "1" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "string3" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "false" - ], - [ - "string1", - "string2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/c.sol deleted file mode 100644 index 802a18c244..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - string memory p4, uint p0, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p4, p0); - console.log(p4, p0, p1); - console.log(p4, p0, p5); - console.log(p4, p0, p8); - console.log(p4, p0, p12); - console.log(p4, p0, p1, p2); - console.log(p4, p0, p1, p5); - console.log(p4, p0, p1, p8); - console.log(p4, p0, p1, p12); - console.log(p4, p0, p5, p1); - console.log(p4, p0, p5, p6); - console.log(p4, p0, p5, p8); - console.log(p4, p0, p5, p12); - console.log(p4, p0, p8, p1); - console.log(p4, p0, p8, p5); - console.log(p4, p0, p8, p9); - console.log(p4, p0, p8, p12); - console.log(p4, p0, p12, p1); - console.log(p4, p0, p12, p5); - console.log(p4, p0, p12, p8); - console.log(p4, p0, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/test.json deleted file mode 100644 index 5d1961f8bf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/string/uint/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "string1", - 1, - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["string1", "1"], - ["string1", "1", "2"], - ["string1", "1", "string2"], - ["string1", "1", "false"], - ["string1", "1", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "2", "3"], - ["string1", "1", "2", "string2"], - ["string1", "1", "2", "false"], - ["string1", "1", "2", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "string2", "2"], - ["string1", "1", "string2", "string3"], - ["string1", "1", "string2", "false"], - [ - "string1", - "1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["string1", "1", "false", "2"], - ["string1", "1", "false", "string2"], - ["string1", "1", "false", "false"], - ["string1", "1", "false", "0x0000000000000000000000000000000000000001"], - ["string1", "1", "0x0000000000000000000000000000000000000001", "2"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["string1", "1", "0x0000000000000000000000000000000000000001", "false"], - [ - "string1", - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/c.sol deleted file mode 100644 index 2d1372047a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, address p12, uint p1, string memory p4, bool p8, address p13, uint p2, string memory p5, bool p9, address p14 - ) public { - console.log(p0, p12); - console.log(p0, p12, p1); - console.log(p0, p12, p4); - console.log(p0, p12, p8); - console.log(p0, p12, p13); - console.log(p0, p12, p1, p2); - console.log(p0, p12, p1, p4); - console.log(p0, p12, p1, p8); - console.log(p0, p12, p1, p13); - console.log(p0, p12, p4, p1); - console.log(p0, p12, p4, p5); - console.log(p0, p12, p4, p8); - console.log(p0, p12, p4, p13); - console.log(p0, p12, p8, p1); - console.log(p0, p12, p8, p4); - console.log(p0, p12, p8, p9); - console.log(p0, p12, p8, p13); - console.log(p0, p12, p13, p1); - console.log(p0, p12, p13, p4); - console.log(p0, p12, p13, p8); - console.log(p0, p12, p13, p14); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/test.json deleted file mode 100644 index 82472306cd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/address/test.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "0x0000000000000000000000000000000000000001", - 2, - "string1", - false, - "0x0000000000000000000000000000000000000002", - 3, - "string2", - false, - "0x0000000000000000000000000000000000000003" - ], - "consoleLogs": [ - ["1", "0x0000000000000000000000000000000000000001"], - ["1", "0x0000000000000000000000000000000000000001", "2"], - ["1", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "2", "3"], - ["1", "0x0000000000000000000000000000000000000001", "2", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "2", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "2", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "2"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "string2" - ], - ["1", "0x0000000000000000000000000000000000000001", "string1", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "string1", - "0x0000000000000000000000000000000000000002" - ], - ["1", "0x0000000000000000000000000000000000000001", "false", "2"], - ["1", "0x0000000000000000000000000000000000000001", "false", "string1"], - ["1", "0x0000000000000000000000000000000000000001", "false", "false"], - [ - "1", - "0x0000000000000000000000000000000000000001", - "false", - "0x0000000000000000000000000000000000000002" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "2" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "string1" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "false" - ], - [ - "1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002", - "0x0000000000000000000000000000000000000003" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/c.sol deleted file mode 100644 index ad3644a886..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, bool p8, uint p1, string memory p4, bool p9, address p12, uint p2, string memory p5, bool p10, address p13 - ) public { - console.log(p0, p8); - console.log(p0, p8, p1); - console.log(p0, p8, p4); - console.log(p0, p8, p9); - console.log(p0, p8, p12); - console.log(p0, p8, p1, p2); - console.log(p0, p8, p1, p4); - console.log(p0, p8, p1, p9); - console.log(p0, p8, p1, p12); - console.log(p0, p8, p4, p1); - console.log(p0, p8, p4, p5); - console.log(p0, p8, p4, p9); - console.log(p0, p8, p4, p12); - console.log(p0, p8, p9, p1); - console.log(p0, p8, p9, p4); - console.log(p0, p8, p9, p10); - console.log(p0, p8, p9, p12); - console.log(p0, p8, p12, p1); - console.log(p0, p8, p12, p4); - console.log(p0, p8, p12, p9); - console.log(p0, p8, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/test.json deleted file mode 100644 index 794182376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/bool/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - false, - 2, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string2", - true, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "false"], - ["1", "false", "2"], - ["1", "false", "string1"], - ["1", "false", "false"], - ["1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "2", "3"], - ["1", "false", "2", "string1"], - ["1", "false", "2", "false"], - ["1", "false", "2", "0x0000000000000000000000000000000000000001"], - ["1", "false", "string1", "2"], - ["1", "false", "string1", "string2"], - ["1", "false", "string1", "false"], - ["1", "false", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "false", "false", "2"], - ["1", "false", "false", "string1"], - ["1", "false", "false", "true"], - ["1", "false", "false", "0x0000000000000000000000000000000000000001"], - ["1", "false", "0x0000000000000000000000000000000000000001", "2"], - ["1", "false", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "false", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "false", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/c.sol deleted file mode 100644 index bf97d46845..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint256 p0, uint256 p1, int256 p2, int256 p3 - ) public { - console.log(p0); - console.log(p1); - console.logInt(p2); - console.logInt(p3); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/test.json deleted file mode 100644 index d4d2a2d767..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/most-significant-bit-set/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "description": "Should correctly interpret sign of integer types", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000", - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "0x8000000000000000000000000000000000000000000000000000000000000000" - ], - "consoleLogs": [ - [ - "115792089237316195423570985008687907853269984665640564039457584007913129639935" - ], - [ - "57896044618658097711785492504343953926634992332820282019728792003956564819968" - ], - ["-1"], - [ - "-57896044618658097711785492504343953926634992332820282019728792003956564819968" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/c.sol deleted file mode 100644 index 45c467c222..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, string memory p4, uint p1, string memory p5, bool p8, address p12, uint p2, string memory p6, bool p9, address p13 - ) public { - console.log(p0, p4); - console.log(p0, p4, p1); - console.log(p0, p4, p5); - console.log(p0, p4, p8); - console.log(p0, p4, p12); - console.log(p0, p4, p1, p2); - console.log(p0, p4, p1, p5); - console.log(p0, p4, p1, p8); - console.log(p0, p4, p1, p12); - console.log(p0, p4, p5, p1); - console.log(p0, p4, p5, p6); - console.log(p0, p4, p5, p8); - console.log(p0, p4, p5, p12); - console.log(p0, p4, p8, p1); - console.log(p0, p4, p8, p5); - console.log(p0, p4, p8, p9); - console.log(p0, p4, p8, p12); - console.log(p0, p4, p12, p1); - console.log(p0, p4, p12, p5); - console.log(p0, p4, p12, p8); - console.log(p0, p4, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/test.json deleted file mode 100644 index 43e758b1ef..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/string/test.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - "string1", - 2, - "string2", - false, - "0x0000000000000000000000000000000000000001", - 3, - "string3", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "string1"], - ["1", "string1", "2"], - ["1", "string1", "string2"], - ["1", "string1", "false"], - ["1", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "2", "3"], - ["1", "string1", "2", "string2"], - ["1", "string1", "2", "false"], - ["1", "string1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "string2", "2"], - ["1", "string1", "string2", "string3"], - ["1", "string1", "string2", "false"], - [ - "1", - "string1", - "string2", - "0x0000000000000000000000000000000000000001" - ], - ["1", "string1", "false", "2"], - ["1", "string1", "false", "string2"], - ["1", "string1", "false", "false"], - ["1", "string1", "false", "0x0000000000000000000000000000000000000001"], - ["1", "string1", "0x0000000000000000000000000000000000000001", "2"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "string2" - ], - ["1", "string1", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "string1", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/c.sol deleted file mode 100644 index b972e036e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/c.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function log( - uint p0, uint p1, uint p2, string memory p4, bool p8, address p12, uint p3, string memory p5, bool p9, address p13 - ) public { - console.log(p0, p1); - console.log(p0, p1, p2); - console.log(p0, p1, p4); - console.log(p0, p1, p8); - console.log(p0, p1, p12); - console.log(p0, p1, p2, p3); - console.log(p0, p1, p2, p4); - console.log(p0, p1, p2, p8); - console.log(p0, p1, p2, p12); - console.log(p0, p1, p4, p2); - console.log(p0, p1, p4, p5); - console.log(p0, p1, p4, p8); - console.log(p0, p1, p4, p12); - console.log(p0, p1, p8, p2); - console.log(p0, p1, p8, p4); - console.log(p0, p1, p8, p9); - console.log(p0, p1, p8, p12); - console.log(p0, p1, p12, p2); - console.log(p0, p1, p12, p4); - console.log(p0, p1, p12, p8); - console.log(p0, p1, p12, p13); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/test.json deleted file mode 100644 index 9acbf9a04b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/console-logs/uint/uint/test.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "description": "Should output right parameters into console", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "log", - "params": [ - 1, - 2, - 3, - "string1", - false, - "0x0000000000000000000000000000000000000001", - 4, - "string2", - false, - "0x0000000000000000000000000000000000000002" - ], - "consoleLogs": [ - ["1", "2"], - ["1", "2", "3"], - ["1", "2", "string1"], - ["1", "2", "false"], - ["1", "2", "0x0000000000000000000000000000000000000001"], - ["1", "2", "3", "4"], - ["1", "2", "3", "string1"], - ["1", "2", "3", "false"], - ["1", "2", "3", "0x0000000000000000000000000000000000000001"], - ["1", "2", "string1", "3"], - ["1", "2", "string1", "string2"], - ["1", "2", "string1", "false"], - ["1", "2", "string1", "0x0000000000000000000000000000000000000001"], - ["1", "2", "false", "3"], - ["1", "2", "false", "string1"], - ["1", "2", "false", "false"], - ["1", "2", "false", "0x0000000000000000000000000000000000000001"], - ["1", "2", "0x0000000000000000000000000000000000000001", "3"], - ["1", "2", "0x0000000000000000000000000000000000000001", "string1"], - ["1", "2", "0x0000000000000000000000000000000000000001", "false"], - [ - "1", - "2", - "0x0000000000000000000000000000000000000001", - "0x0000000000000000000000000000000000000002" - ] - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/c.sol deleted file mode 100644 index 7a2ac38492..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -function fail() { - require(false, "failure reason"); -} - -function callFail() { - fail(); -} - -contract C { - constructor() public { - callFail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/test.json deleted file mode 100644 index faa31b7017..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/constructor-calls-top-level-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "solc": "^0.7.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "file": "c.sol", - "function": "callFail", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "failure reason", - "sourceReference": { - "file": "c.sol", - "function": "fail", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/c.sol deleted file mode 100644 index 63f5cbac6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.callE(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/d.sol deleted file mode 100644 index 9ce82729c2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/d.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -import "./e.sol"; - -contract D { - - function callE() public { - E e = new E(); - - e.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/e.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/e.sol deleted file mode 100644 index 2f4db34c1d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/e.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract E { - - function fail() public { - - - - - - revert("E failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/test.json deleted file mode 100644 index 6cb3e62e9a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-multiple-times/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "callE", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "E failed", - "sourceReference": { - "contract": "E", - "file": "e.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/c.sol deleted file mode 100644 index 752a2e0a10..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() public - { - } - - function test() public { - D d = new D{salt: 0x1234567812345678123456781234567812345678123456781234567812345678}(); - d.fail(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/d.sol deleted file mode 100644 index 74fd13da2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/d.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - - -contract D { - - function fail() public { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/test.json deleted file mode 100644 index 37569e6ea0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure-with-salt/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "function": "test", - "contract": "C", - "file": "c.sol", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/c.sol deleted file mode 100644 index e0f8f7e294..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/d.sol deleted file mode 100644 index 0bd96eb9d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public returns (uint) { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/test.json deleted file mode 100644 index e2a0d48013..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/forward-contract-failure/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/c.sol deleted file mode 100644 index 2ee00e9af1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - IgnoredL.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/l.sol deleted file mode 100644 index 497ebd1e00..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library IgnoredL { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/test.json deleted file mode 100644 index 54203c026a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/ignored-library-call-reverts/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "IgnoredL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "IgnoredL": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_CONTRACT_ERROR", - "message": "check" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/c.sol deleted file mode 100644 index e0f8f7e294..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - d.fail(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/d.sol deleted file mode 100644 index 3ae6c48afb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/d.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public returns (uint256) { - assembly { - return(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/test.json deleted file mode 100644 index ec13589438..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/incorrect-returndata-size/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "RETURNDATA_SIZE_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/c.sol deleted file mode 100644 index 1539ff9466..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/l.sol deleted file mode 100644 index 1fedc3aec3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/l.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} - -library OtherL { - - function check() public { - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/test.json deleted file mode 100644 index b231c7e894..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-missing-function/test.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "OtherL" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "contract": "OtherL", - "file": "l.sol", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/c.sol deleted file mode 100644 index 1539ff9466..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/l.sol deleted file mode 100644 index 55c64a5854..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/l.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - require(b, "check"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/test.json deleted file mode 100644 index 8a525b42e3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-reverts/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "check", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol deleted file mode 100644 index 1539ff9466..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./l.sol"; - -contract C { - - constructor(bool b) public { - L.check(b); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol deleted file mode 100644 index c499fdf237..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/l.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -library L { - - function check(bool b) public { - internalCheck(b); - } - - function internalCheck(bool b) internal { - require(b, "internalCheck"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/test.json deleted file mode 100644 index c72ba9382f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/library-call-with-internal-calls-reverts/test.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "transactions": [ - { - "file": "l.sol", - "contract": "L" - }, - { - "file": "c.sol", - "contract": "C", - "libraries": { - "l.sol": { - "L": 0 - } - }, - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "check", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internalCheck", - "sourceReference": { - "contract": "L", - "file": "l.sol", - "function": "internalCheck", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/c.sol deleted file mode 100644 index 314160ea6c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - function f() public { - } -} - -contract C { - - constructor() public { - D(address(0x12345678901234567890)).f(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/test.json deleted file mode 100644 index 0d71810f4d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/non-contract-account-called/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "NONCONTRACT_ACCOUNT_CALLED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/c.sol deleted file mode 100644 index 3fae8cd9d3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - payable(address(d)).send(1); - - revert("failed here"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/test.json deleted file mode 100644 index c473a1e37d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/not-forward-contract-failure/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "failed here", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/c.sol deleted file mode 100644 index 618cdd59ba..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - payable(address(d)).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/test.json deleted file mode 100644 index 05d2df376d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-fails/test.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1 - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/c.sol deleted file mode 100644 index c17e616b68..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() public { - D d = new D(); - payable(address(d)).send(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/d.sol deleted file mode 100644 index bce0b8a1ee..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/test.json deleted file mode 100644 index 9c44caf79f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/send-without-funds/test.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/c.sol deleted file mode 100644 index b5cc9fd0ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - payable(address(d)).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/test.json deleted file mode 100644 index 859e977601..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-fails/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - }, - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/c.sol deleted file mode 100644 index b5cc9fd0ca..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - - constructor() payable public { - D d = new D(); - payable(address(d)).transfer(1); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/d.sol deleted file mode 100644 index de4165364e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - receive () payable external { - revert("D failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/test.json deleted file mode 100644 index b44884e089..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/transfer-without-funds/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALL_FAILED_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol deleted file mode 100644 index cc69611803..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - d.fail(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol deleted file mode 100644 index 1fb1bf1ff0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - function fail() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json deleted file mode 100644 index 72a40cd694..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-calls-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "fail", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol deleted file mode 100644 index 13157913e6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract IgnoredC { - - constructor() public { - D d = new D(); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol deleted file mode 100644 index 31a71c1d6a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/d.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - - constructor() public { - revert("d"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json deleted file mode 100644 index 769cbff030..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/external-calls/unrecognized-deployments/unrecognized-contract-creates-recognized-one-failure/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_CALLSTACK_ENTRY" - }, - { - "type": "REVERT_ERROR", - "message": "d", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol deleted file mode 100644 index f2079350c4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol deleted file mode 100644 index be71596337..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - fail(b); - } - - function fail(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json deleted file mode 100644 index 1f5824e46a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails-in-call/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/c.sol deleted file mode 100644 index f2079350c4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D, E { - constructor(bool b) D(b) E(b) public {} - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/d.sol deleted file mode 100644 index 2a96040470..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor(bool b) public { - } -} - -contract E { - constructor(bool b) public { - require(b, ""); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/test.json deleted file mode 100644 index 736f39027d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/multiple-constructor-one-fails/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/c.sol deleted file mode 100644 index fbaa6be84e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/d.sol deleted file mode 100644 index 39ab3e313f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor() public { - revert("D failed"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/test.json deleted file mode 100644 index 3b52decde0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-reverts/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "D failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol deleted file mode 100644 index 85bc7dafcd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/c.sol +++ /dev/null @@ -1,6 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol deleted file mode 100644 index df18910ca1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/d.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor() m public { - - } - - modifier m { - _; - fail(); - } - - function fail() internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json deleted file mode 100644 index e7fca1a8bd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-call-from-modifier/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "message": "fail", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "fail", - "line": 14 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol deleted file mode 100644 index fbaa6be84e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C is D { - uint public x = 42; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol deleted file mode 100644 index 88677ad4d6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/d.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor() m public { - - } - - modifier m { - revert("D.m failed"); - _; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json deleted file mode 100644 index 299e3567ec..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/inheritance/only-inherited-constructor-with-failing-modifier/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "D.m failed", - "sourceReference": { - "contract": "C", - "file": "d.sol", - "function": "m", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/c.sol deleted file mode 100644 index d75d7fc443..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - revert("f failed"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/test.json deleted file mode 100644 index 1cf6a2cfaf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-from-modifier-fails/test.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 8 - } - }, - { - "type": "REVERT_ERROR", - "message": "f failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "f", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol deleted file mode 100644 index cdbe2d4a76..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - - _; - revert("mod failed after"); - } - - function fail() mod internal { - - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json deleted file mode 100644 index bb9d02af04..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-after/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 15 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed after", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol deleted file mode 100644 index 884335c449..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - fail(); - } - - modifier mod { - revert("mod failed before"); - _; - } - - function fail() mod internal { - revert("fail"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json deleted file mode 100644 index 25bf5e4340..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-function-with-failing-modifier-before/test.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 14 - } - }, - { - "type": "REVERT_ERROR", - "message": "mod failed before", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mod", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/c.sol deleted file mode 100644 index 212e2bf0e1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() internal { - revert("internal"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/test.json deleted file mode 100644 index 03707bb638..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-internal-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "internal", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/c.sol deleted file mode 100644 index 71e26cac35..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() private { - revert("private"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/test.json deleted file mode 100644 index 096f86ddde..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-private-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "private", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/c.sol deleted file mode 100644 index d6069d81d9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - fail(); - } - - function fail() public { - revert("public"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/test.json deleted file mode 100644 index ef49fbb2ac..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/call-to-public-function/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - }, - { - "type": "REVERT_ERROR", - "message": "public", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/c.sol deleted file mode 100644 index 4448353944..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/c.sol +++ /dev/null @@ -1,20 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - f(); - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - - function f() internal { - - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/internal-calls/modifier-fails-after-call/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/c.sol deleted file mode 100644 index 8650d6c020..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/test.json deleted file mode 100644 index 354f70fe6d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/assert/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/c.sol deleted file mode 100644 index 26662fc988..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - constructor(uint256 i) public - { - uint256 j = 123 / i; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/test.json deleted file mode 100644 index bfe36fcd68..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/division-by-zero/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [0], - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/c.sol deleted file mode 100644 index 12809842ea..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(bool b) m1(b) public { - revert("a"); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/test.json deleted file mode 100644 index a8e7dfa8db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/fail-after-modifier/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "a", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/c.sol deleted file mode 100644 index 1b4ab89930..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint immutable x = 42; - - constructor() public { - revert("asd"); - } - - function get2X() public returns (uint) { - return 2*x; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/test.json deleted file mode 100644 index 0b2d4d1657..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/immutable-variable/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "skip": true, - "reason": "This code seems to trigger a bug in the compiler: https://github.com/ethereum/solidity/issues/8727", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/c.sol deleted file mode 100644 index 57ae853e9b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - - -contract C { - - uint256[] a; - - constructor(uint256 i) public - { - a.push(0); - a[i]; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/test.json deleted file mode 100644 index 084142b6f9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/invalid-array-access/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [1], - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "32", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/c.sol deleted file mode 100644 index dfdcb352e2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier mm(bool b) { - _; - - - - require(b, "ReqMsg"); - } - - constructor(bool b) mm(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/test.json deleted file mode 100644 index d4ca1588a1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-after/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 13 - } - }, - { - "type": "REVERT_ERROR", - "message": "ReqMsg", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/c.sol deleted file mode 100644 index b9951b0038..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m(bool b) { - assert(b); - _; - } - - constructor(bool b) m(b) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/test.json deleted file mode 100644 index abf59b989f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-fails-before/test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/c.sol deleted file mode 100644 index 03bc646a77..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b, ""); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/modifier-multiple-underscores/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/c.sol deleted file mode 100644 index f003958a86..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m2() { - revert(""); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(""); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/multiple-modifiers/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/c.sol deleted file mode 100644 index acb36692d7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/c.sol deleted file mode 100644 index bdb482dacd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/test.json deleted file mode 100644 index d7afbd284f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args-and-value/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/c.sol deleted file mode 100644 index bdb482dacd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(uint i) payable public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/test.json deleted file mode 100644 index 3fa3ba4ace..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/payable-with-wrong-args/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "INVALID_PARAMS_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/c.sol deleted file mode 100644 index d20af5f85b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - - - - - - - require(false, "req"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/test.json deleted file mode 100644 index e45e625f9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/require-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "req", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/c.sol deleted file mode 100644 index 241380fea5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - assembly { - revert(0, 0) - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/test.json deleted file mode 100644 index 8ab2e07a18..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-in-assembly/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/c.sol deleted file mode 100644 index 02e6663551..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - payable(address(this)).send(1); - revert("r"); - } - - receive () payable external { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/test.json deleted file mode 100644 index 79e10952cc..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message-after-send-fails/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "r", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/c.sol deleted file mode 100644 index c9b5210b05..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - - revert("asd"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/test.json deleted file mode 100644 index 19810db69a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-with-message/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "asd", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/c.sol deleted file mode 100644 index 8bd9205649..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - - - revert(""); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/test.json deleted file mode 100644 index 8f1b1d7278..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/revert-without-message/test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol deleted file mode 100644 index acb36692d7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(uint i) public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable-with-wrong-args/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/c.sol deleted file mode 100644 index c8c21163da..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public { - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/test.json deleted file mode 100644 index a05fa72fe6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/send-value-to-nonpayable/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "value": 1, - "stackTrace": [ - { - "type": "FUNCTION_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/c.sol deleted file mode 100644 index dba47ddc75..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract IgnoredC { - - constructor() public { - assert(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/test.json deleted file mode 100644 index 5230fb77cb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/create-message/no-calls/unrecognized-failure/test.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "IgnoredC", - "stackTrace": [ - { - "type": "UNRECOGNIZED_CREATE_ERROR" - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/c.sol deleted file mode 100644 index ddb4451e41..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/c.sol +++ /dev/null @@ -1,29 +0,0 @@ -pragma solidity ^0.8.4; - -contract C { - struct Point { - uint x; - uint y; - } - - error MyError(uint x, uint[] xs, bytes4 b, Point p, Point[] ps); - - function test() public { - uint x = 0; - - uint[] memory xs = new uint[](3); - xs[0] = 1; - xs[1] = 2; - xs[2] = 3; - - bytes4 b = 0x12345678; - - Point memory p = Point(4, 5); - - Point[] memory ps = new Point[](2); - ps[0] = Point(6,7); - ps[1] = Point(8,9); - - revert MyError(x, xs, b, p, ps); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/test.json deleted file mode 100644 index 98618cd804..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/complex-custom-error/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.8.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CUSTOM_ERROR", - "message": "reverted with custom error 'MyError(0, [1, 2, 3], \"0x12345678\", [4, 5], [[6, 7], [8, 9]])'", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 27 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/c.sol deleted file mode 100644 index c2dbf6b24b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.4; - -contract C { - error MyError(uint code, string reason); - - function test() public { - revert MyError(42, "failure reason"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/test.json deleted file mode 100644 index 291bc48857..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/custom-error-with-string/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.8.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CUSTOM_ERROR", - "message": "reverted with custom error 'MyError(42, \"failure reason\")'", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/c.sol deleted file mode 100644 index 227471368a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.4; - -contract C { - error Unauthorized(); - - function test() public { - revert Unauthorized(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/test.json deleted file mode 100644 index 9c86837a2f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/custom-errors/simple-custom-error/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "solc": "^0.8.4", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CUSTOM_ERROR", - "message": "reverted with custom error 'Unauthorized()'", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 60f7bf9d63..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 7db0fb1786..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 27a8f6fcb5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index f8d0112761..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index e92171a193..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index f025dcf2fe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 1df3ec9cc6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index 02f3c2764e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 0c66c8f252..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 60f7bf9d63..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 7db0fb1786..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index 22cdd6e324..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "UNRECOGNIZED_FUNCTION_WITHOUT_FALLBACK_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index f8d0112761..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index e92171a193..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 1df3ec9cc6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index 02f3c2764e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 6cbdf49c9e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/with-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "data": "0xaabbccdd", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 60f7bf9d63..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index c332faf5cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 7db0fb1786..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json deleted file mode 100644 index 2de7b9cc23..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index f8d0112761..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index f530f4be38..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "FALLBACK_NOT_PAYABLE_AND_NO_RECEIVE_ERROR", - "value": 1, - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index e92171a193..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 1df3ec9cc6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 92b435eef8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index 02f3c2764e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json deleted file mode 100644 index 14ab04aa81..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-with-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "value": 1, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol deleted file mode 100644 index 60f7bf9d63..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json deleted file mode 100644 index a8ebb8ddbe..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-no-receive/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "MISSING_FALLBACK_OR_RECEIVE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "line": 3 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol deleted file mode 100644 index 7db0fb1786..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json deleted file mode 100644 index ada9108fcf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/no-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol deleted file mode 100644 index f8d0112761..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol deleted file mode 100644 index e92171a193..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/non-payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol deleted file mode 100644 index 1df3ec9cc6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json deleted file mode 100644 index 903d82e172..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-no-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "fallback failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol deleted file mode 100644 index 02f3c2764e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback () external payable { - revert('fallback failed'); - } - - receive () external payable { - revert('receive failed'); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json deleted file mode 100644 index d095ab7bae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/fallback-and-receive/without-calldata-without-value/payable-fallback-and-receive/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "receive failed", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/c.sol deleted file mode 100644 index 9e18919099..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED - -// LogFileEvent is available ONLY from versions >= 0.8.22. -// Smoke test to check that 0.8.22 is setup correctly. - -pragma solidity ^0.8.22; - -// File-level event definition -event LogFileEvent(); - -contract C { - function f() public { - emit LogFileEvent(); - require(false, "error reason"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/test.json deleted file mode 100644 index 3528d00a67..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/file-level-event/test.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "solc": "^0.8.22", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "f", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "function": "f", - "contract": "C", - "file": "c.sol", - "line": 14, - "range": [164, 194] - }, - "message": "error reason", - "isInvalidOpcodeError": false - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/c.sol deleted file mode 100644 index ee47da58f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/c.sol +++ /dev/null @@ -1,40 +0,0 @@ -pragma solidity ^0.8.0; - -// Note: This test is pretty special and also fragile. -// It check two kinds of OOGs "chaining": -// * When an EVM message (M) OOGs, and the caller message also OOGs while checking if M OOG'd -// * When an EVM message OOGs, and the caller reverts because of that -// -// The latter case leads to a CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR, but the former just to a CALLSTACK_ENTRY. -// This test is very sensitive to the compiler being used, its settings, and the gas limit. It is known to work with -// soljson-v0.7.0+commit.9e61f92b.js, without optimizations, and 4M gas. -// -// The reason for it being so sensitive is that we can't test why CALLSTACK_ENTRYs were generated. - -contract O { - uint i = 1; - - function inc() public { - i += 1; - } - - function oog() public { - for (uint i = 0; i < 10000; i += 1) { - this.inc(); - } - } -} - -contract C { - - function test() public { - this.oog(); - } - - function oog() public { - O o = new O(); - for (uint i = 0; i < 10000; i += 1) { - o.oog(); - } - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/test.json deleted file mode 100644 index 6c150bfa2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/test.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "gas": 4000000, - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 31 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "oog", - "line": 37 - } - }, - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "O", - "file": "c.sol", - "function": "oog", - "line": 23 - } - }, - { - "type": "CONTRACT_CALL_RUN_OUT_OF_GAS_ERROR", - "sourceReference": { - "contract": "O", - "file": "c.sol", - "function": "inc", - "line": 18 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/c.sol deleted file mode 100644 index 261e9c7856..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - // max uint value - uint public x = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; - - function test() public { - x++; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/test.json deleted file mode 100644 index a9f2bdfb61..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-overflow/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "11", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/c.sol deleted file mode 100644 index ecbfe67671..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint public x; - - function test() public { - x--; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/test.json deleted file mode 100644 index 7bce507997..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/arithmetic-underflow/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "11", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/c.sol deleted file mode 100644 index 3780710124..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint x; - uint[] public a = [1,2,3]; - function test() public { - x = a[5]; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/test.json deleted file mode 100644 index ed83acda8d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-access-out-of-bounds/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "32", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/c.sol deleted file mode 100644 index 801fede7f7..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - function test() public returns (bytes memory) { - uint256 l = 2**256 / 32; - uint256[] memory x = new uint256[](l); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/test.json deleted file mode 100644 index fec0e48acf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/array-too-large/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "41", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/c.sol deleted file mode 100644 index 081acc80b9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/c.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - function test() public { - assert(false); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/test.json deleted file mode 100644 index 84d09c4084..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/assert-failure/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "1", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/c.sol deleted file mode 100644 index bf31ea4b2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - enum MyEnum { Foo, Bar, Baz } - - function test() public { - uint x = 4; - MyEnum myEnum = MyEnum(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/test.json deleted file mode 100644 index 3fce83784e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/big-value-to-enum/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "21", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/c.sol deleted file mode 100644 index 3a21dee0db..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract C { - function test() public { - D d = new D(); - - d.test2(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/d.sol deleted file mode 100644 index d705297294..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/d.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - uint x; - - function test2() public { - x = 1 / x; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/test.json deleted file mode 100644 index 9257bef8ae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/call-another-contract-that-panics/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "test2", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/c.sol deleted file mode 100644 index b0a37a82b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint public x = 1; - uint public y = 0; - uint public z; - - function test() public { - z = x / y; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/test.json deleted file mode 100644 index 414676f927..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/division-by-zero/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/c.sol deleted file mode 100644 index 47ad67295b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - bytes public x = "abc"; - - function invalidateXShort() public { - assembly { sstore(x.slot, 64) } - } - function test() public returns (bytes memory) { - invalidateXShort(); - x.pop(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/test.json deleted file mode 100644 index 36b6d699a5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/invalid-storage-byte-array/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "22", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/c.sol deleted file mode 100644 index db32fcff29..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - enum MyEnum { Foo, Bar, Baz } - - function test() public { - int x = -1; - MyEnum myEnum = MyEnum(x); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/test.json deleted file mode 100644 index 3fce83784e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/negative-value-to-enum/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "21", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/c.sol deleted file mode 100644 index 7b782bf453..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -function div(uint a, uint b) returns (uint) { - return a / b; -} - -contract C { - uint x; - - function test() public { - x = div(1, 0); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/test.json deleted file mode 100644 index 3a942e4e30..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-in-top-level-function/test.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 11 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "file": "c.sol", - "function": "div", - "line": 4 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/c.sol deleted file mode 100644 index 9fee177746..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint x; - - constructor() { - fail(); - } - - function fail() public { - x = 1 / x; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/test.json deleted file mode 100644 index 5be6ea9294..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/panic-on-deployment/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 7 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/c.sol deleted file mode 100644 index 70486d2def..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/c.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint[] public a; - function test() public { - a.pop(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/test.json deleted file mode 100644 index b71e76cad8..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/pop-in-empty-array/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "31", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/c.sol deleted file mode 100644 index 36d8005dc5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.1; - -import "./../../../../../../../../console.sol"; - -contract C { - uint x; - - function test() public { - try this.set() {} catch Panic(uint code) { - console.log(code); - } - } - - function set() public { - x = 1 / x; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/test.json deleted file mode 100644 index 032a995a49..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-caught-panic/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "solc": "^0.8.1", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "consoleLogs": [["18"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/c.sol deleted file mode 100644 index 5bcff7ad91..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.1; - -import "./../../../../../../../../console.sol"; - -contract C { - uint x; - - function test() public { - try this.set() {} catch Error(string memory reason) { - console.log(reason); - } - } - - function set() public { - x = 1 / x; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/test.json deleted file mode 100644 index ee0c973d34..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/try-catch-with-uncaught-panic/test.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "skip": true, - "reason": "Known bug: https://github.com/nomiclabs/hardhat/issues/1463", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "PANIC_ERROR", - "errorCode": "12", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "set", - "line": 15 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/c.sol deleted file mode 100644 index 68c3af7c37..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/c.sol +++ /dev/null @@ -1,9 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - function () internal f; - - function test() public returns (bytes memory) { - f(); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/test.json deleted file mode 100644 index 81c1a50bc2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/panic-codes/uninitialized-function-type/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "PANIC_ERROR", - "errorCode": "51", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 7 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index 3fbb803e2b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index bf694b88e0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 125d3c9054..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol deleted file mode 100644 index a9f4bb8309..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,21 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m2(bool b) { - require(b); - _; - } - - function test(bool b, bool doRevert) m1(b) m2(b) public { - // always true, used to prevent optimizations - if (doRevert) { - revert(); - } - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json deleted file mode 100644 index d8abf12a2e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false, true], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index cc52b19792..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - function test(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json deleted file mode 100644 index 2d9b4e2762..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/call-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [false], - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol deleted file mode 100644 index e92c38f37e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - require(b); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-require/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol deleted file mode 100644 index ca1112d212..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor(bool b) mm(b) public { - } - - modifier mm(bool b) { - _; - _; - revert(); - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json deleted file mode 100644 index 9178573bd4..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/modifier-multiple-underscores-revert/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "mm", - "line": 11 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol deleted file mode 100644 index 105a451f4e..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/c.sol +++ /dev/null @@ -1,21 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - uint i; - modifier m2(bool b) { - require(b); - _; - } - - constructor(bool b, bool doRevert) m1(b) m2(b) public { - // always true, used to prevent optimizations - if (doRevert) { - revert(); - } - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json deleted file mode 100644 index 774b5eb3cf..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-require/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false, true], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol deleted file mode 100644 index 1ca0ae5743..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - modifier m2() { - revert(); - _; - } - - constructor(bool b) m1(b) m2 public { - revert(); - } - - modifier m1(bool b) { - _; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json deleted file mode 100644 index 36009d9509..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/modifiers/create-message/multiple-modifiers-revert/test.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "params": [false], - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - }, - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "m2", - "line": 6 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index f786052787..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index bd13cbff8d..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index e6c02db274..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index 79cfbf9da3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index 6e2f475d1f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index 3e53b76b87..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index a87eeb9d72..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback() external { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 096f901805..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 4c03bfb100..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - fallback() external { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index fddd8a82d5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/c.sol deleted file mode 100644 index d153563738..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index c57e24e42f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 253611b966..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/c.sol deleted file mode 100644 index 0bb3bc0c25..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - function test() public { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/c.sol deleted file mode 100644 index acfe17a881..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index 257d83fc42..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - require(false); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index fed10e5724..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - receive() external payable { - - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index f0122a5fa3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index 01809fc3d6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - require(false); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 9ee70e6881..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - require(false); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/require-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol deleted file mode 100644 index dd692de987..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - constructor() public payable { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/between-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol deleted file mode 100644 index 40c65a7894..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } -} - -contract C is D { - uint public j; -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json deleted file mode 100644 index 83e67fa9b2..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/inherited-statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol deleted file mode 100644 index b9dcce7da1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - constructor() public payable { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json deleted file mode 100644 index e6c02db274..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/no-other-statements/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol deleted file mode 100644 index bf4b2843a6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - constructor() public payable { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-after/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol deleted file mode 100644 index bba995ef4c..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - constructor() public payable { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/test.json deleted file mode 100644 index 054aff597b..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-constructor/statement-before/test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "constructor", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol deleted file mode 100644 index 6ea231e8ad..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - fallback() external { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol deleted file mode 100644 index b95fa82bf5..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - fallback() external { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json deleted file mode 100644 index 096f901805..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol deleted file mode 100644 index 6b6a017c4f..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - fallback() external { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol deleted file mode 100644 index 0618d02a36..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - fallback() external { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/test.json deleted file mode 100644 index b00246f1f1..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-fallback/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/c.sol deleted file mode 100644 index bdd00f8313..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - function test() public { - i += 1; - revert(); - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/between-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol deleted file mode 100644 index 078fb13472..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - function test() public { - - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/test.json deleted file mode 100644 index 253611b966..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/no-other-statements/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 8 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/c.sol deleted file mode 100644 index 8769516030..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - function test() public { - - - revert(); - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-after/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/c.sol deleted file mode 100644 index 02371420c3..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/c.sol +++ /dev/null @@ -1,13 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - function test() public { - i += 1; - - revert(); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/test.json deleted file mode 100644 index 9ec9a67ce0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-function/statement-before/test.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "function": "test", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/c.sol deleted file mode 100644 index fedaa38a60..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - uint j = 0; - - receive() external payable { - i += 1; - // always true, used to prevent optimizations - if (msg.value == 0) { - revert(); - } - j += 2; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/test.json deleted file mode 100644 index 3516625820..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/between-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol deleted file mode 100644 index b6f9265376..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - receive() external payable { - - - // always true, used to prevent optimizations - if (msg.value == 0) { - revert(); - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json deleted file mode 100644 index 821a712d08..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/no-other-statements/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 10 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/c.sol deleted file mode 100644 index c98367efae..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/c.sol +++ /dev/null @@ -1,17 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - receive() external payable { - - - // always true, used to prevent optimizations - if (msg.value == 0) { - revert(); - } - i += 1; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/test.json deleted file mode 100644 index 3516625820..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-after/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/c.sol deleted file mode 100644 index 53c4715798..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/c.sol +++ /dev/null @@ -1,16 +0,0 @@ -pragma solidity ^0.8.0; - -contract C { - - uint i = 0; - - receive() external payable { - i += 1; - - // always true, used to prevent optimizations - if (msg.value == 0) { - revert(); - } - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/test.json deleted file mode 100644 index 3516625820..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/revert-without-message/revert-without-message/within-receive/statement-before/test.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "params": [], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "", - "line": 12 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/c.sol deleted file mode 100644 index 68217c7ebd..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/c.sol +++ /dev/null @@ -1,18 +0,0 @@ -pragma solidity ^0.8.0; - -import "./d.sol"; - -contract E { - constructor() public { - revert("E"); - } -} - - -contract C is D, E { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } - -} - diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/d.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/d.sol deleted file mode 100644 index a3168867e6..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/d.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.8.0; - -contract D { - constructor() public { - revert("C and D have the same deployment bytecode because they always fail and get recognized as D"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/test.json deleted file mode 100644 index e150806204..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/different-contracts-same-deployment-bytecode/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "description": "Should clash create bytecodes and resolve to D", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "REVERT_ERROR", - "message": "C and D have the same deployment bytecode because they always fail and get recognized as D", - "sourceReference": { - "contract": "D", - "file": "d.sol", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/c.sol deleted file mode 100644 index 9f609dda71..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/c.sol +++ /dev/null @@ -1,14 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - function proxyMessageCall(function (uint256) external returns (uint256) aFunction, uint256 aParameter) public returns (uint256) { - return aFunction(aParameter); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/function-type-as-public-parameter/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/c.sol deleted file mode 100644 index 22d5b02cc9..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/c.sol +++ /dev/null @@ -1,19 +0,0 @@ -pragma solidity ^0.8.0; - -import "./../../../../../../../../console.sol"; - -contract C { - - function printSomething() public { - console.log("something"); - } - - // This tests our AST parsing logic. - // Having custom types on private or internal functions shouldn't be a problem. - struct CustomType { - bytes32 whatever; - } - - function receiveCustomType(CustomType storage something) private view {} - function anotherReceiveCustomType(CustomType storage something) internal view {} -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/test.json deleted file mode 100644 index d035063812..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/private-function-with-strange-types/test.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../../console.sol"] - }, - { - "to": 0, - "function": "printSomething", - "params": [], - "consoleLogs": [["something"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/c.sol deleted file mode 100644 index b7d7df636a..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/c.sol +++ /dev/null @@ -1,11 +0,0 @@ -pragma solidity ^0.8.1; - -contract C { - function test() public { - try this.fail() {} catch Panic(uint code) {} - } - - function fail() public { - require(false, "failure reason"); - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/test.json deleted file mode 100644 index 2f1081c705..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/special-cases/try-catch-uncaught/test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "skip": true, - "reason": "Known bug: https://github.com/nomiclabs/hardhat/issues/1463", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "test", - "stackTrace": [ - { - "type": "CALLSTACK_ENTRY", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "test", - "line": 5 - } - }, - { - "type": "REVERT_ERROR", - "message": "failure reason", - "sourceReference": { - "contract": "C", - "file": "c.sol", - "function": "fail", - "line": 9 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol deleted file mode 100644 index b8f53c68fb..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol +++ /dev/null @@ -1,10 +0,0 @@ -pragma solidity ^0.8.8; - -type UFixed is uint256; - -contract C { - function f(UFixed a) public returns (UFixed b) { - require(false, "error reason"); - b = a; - } -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json deleted file mode 100644 index 1c9c148152..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "solc": "^0.8.8", - "transactions": [ - { - "file": "c.sol", - "contract": "C" - }, - { - "to": 0, - "function": "f", - "params": [1], - "stackTrace": [ - { - "type": "REVERT_ERROR", - "sourceReference": { - "function": "f", - "contract": "C", - "file": "c.sol", - "line": 7, - "range": [164, 194] - }, - "message": "error reason", - "isInvalidOpcodeError": false - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/c.sol deleted file mode 100644 index cf5c5dfde0..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/c.sol +++ /dev/null @@ -1,12 +0,0 @@ -pragma solidity >=0.5.1; - -contract C { - - constructor() public { - } - - function returnsAHugeString() public returns (string memory) { - return "........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................"; - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/test.json deleted file mode 100644 index 79e3cf2a00..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/eip170-contract-too-large/test.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "skipViaIR": true, - "skipViaIRReason": "https://github.com/ethereum/solidity/issues/13496", - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "stackTrace": [ - { - "type": "CONTRACT_TOO_LARGE_ERROR", - "sourceReference": { - "file": "c.sol", - "contract": "C", - "function": "constructor", - "line": 5 - } - } - ] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/c.sol deleted file mode 100644 index 19d1b62c97..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/c.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity >=0.5.1; - -import "./../../../../../../../console.sol"; - -contract C { - - constructor() public { - log(); - } - - function log() internal pure { - console.log("hello"); - } - -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/test.json deleted file mode 100644 index 322caab111..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/version-independent/pure-console-log/test.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "transactions": [ - { - "file": "c.sol", - "contract": "C", - "imports": ["/../../../../../../../console.sol"], - "consoleLogs": [["hello"]] - } - ] -} diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts deleted file mode 100644 index aeca819b75..0000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts +++ /dev/null @@ -1,878 +0,0 @@ -import { toBytes } from "@nomicfoundation/ethereumjs-util"; -import { assert } from "chai"; -import fs from "fs"; -import fsExtra from "fs-extra"; -import path from "path"; -import semver from "semver"; - -import { EdrProviderWrapper } from "../../../../src/internal/hardhat-network/provider/provider"; -import { ReturnData } from "../../../../src/internal/hardhat-network/provider/return-data"; -import { - ConsoleLogs, - ConsoleLogger, -} from "../../../../src/internal/hardhat-network/stack-traces/consoleLogger"; -import { - printMessageTrace, - printStackTrace, -} from "../../../../src/internal/hardhat-network/stack-traces/debug"; -import { linkHexStringBytecode } from "../../../../src/internal/hardhat-network/stack-traces/library-utils"; -import { - CallMessageTrace, - CreateMessageTrace, - MessageTrace, -} from "../../../../src/internal/hardhat-network/stack-traces/message-trace"; -import { - SolidityStackTraceEntry, - StackTraceEntryType, -} from "../../../../src/internal/hardhat-network/stack-traces/solidity-stack-trace"; -import { SolidityTracer } from "../../../../src/internal/hardhat-network/stack-traces/solidityTracer"; -import { VmTraceDecoderT } from "../../../../src/internal/hardhat-network/stack-traces/vm-trace-decoder"; -import { - BuildInfo, - CompilerInput, - CompilerOutput, - CompilerOutputBytecode, -} from "../../../../src/types"; -import { setCWD } from "../helpers/cwd"; - -import { SUPPORTED_SOLIDITY_VERSION_RANGE } from "../../../../src/internal/hardhat-network/stack-traces/constants"; -import { TracingConfig } from "../../../../src/internal/hardhat-network/provider/node-types"; -import { BUILD_INFO_FORMAT_VERSION } from "../../../../src/internal/constants"; -import { FakeModulesLogger } from "../helpers/fakeLogger"; -import { requireNapiRsModule } from "../../../../src/common/napi-rs"; -import { - compileFiles, - COMPILER_DOWNLOAD_TIMEOUT, - downloadCompiler, -} from "./compilation"; -import { - getLatestSupportedVersion, - SolidityCompiler, - SolidityCompilerOptimizer, - solidityCompilers, -} from "./compilers-list"; -import { - encodeCall, - encodeConstructorParams, - instantiateProvider, - traceTransaction, -} from "./execution"; - -const { stackTraceEntryTypeToString } = requireNapiRsModule( - "@nomicfoundation/edr" -) as typeof import("@nomicfoundation/edr"); - -interface StackFrameDescription { - type: string; - sourceReference?: { - contract: string; - file: string; - function: string; - line: number; - }; - message?: string; - value?: string | number; - errorCode?: string; -} - -interface TestDefinition { - skip?: boolean; - skipViaIR?: boolean; - only?: boolean; - print?: boolean; - solc?: string; - description?: string; - transactions: TestTransaction[]; -} - -type TestTransaction = DeploymentTransaction | CallTransaction; - -interface DeploymentTransaction { - file: string; - contract: string; - value?: string | number; // Default: 0 - params?: Array; // Default: no param - libraries: { - [file: string]: { - [lib: string]: number; // The number of tx that deployed the lib - }; - }; - stackTrace?: StackFrameDescription[]; // No stack trace === the tx MUST be successful - imports?: string[]; // Imports needed for successful compilation - consoleLogs?: ConsoleLogs; - gas?: number; -} - -interface CallTransaction { - value?: string | number; // Default: 0 - to: number; // The index of the tx that deployed the contract - stackTrace?: StackFrameDescription[]; // No stack trace === the tx MUST be successful - - // There are two options to pass calldata, the first one (with higher priority) is with data - data?: string; // 0x-prefixed Hex string - - // The second one is with function and parms - function?: string; // Default: no data - params?: Array; // Default: no param - consoleLogs?: ConsoleLogs; - gas?: number; -} - -interface DeployedContract { - file: string; - name: string; - address: Buffer; -} - -const TEST_TIMEOUT_MILLIS = 120000; - -function defineTest( - dirPath: string, - testDefinition: TestDefinition, - sources: string[], - compilerOptions: SolidityCompiler -) { - const desc: string = - testDefinition.description !== undefined - ? testDefinition.description - : path.relative(__dirname, dirPath); - - const solcVersionDoesntMatch: boolean = - testDefinition.solc !== undefined && - !semver.satisfies(compilerOptions.solidityVersion, testDefinition.solc); - - dirPath.includes("oog-chaining"); - - const func = async function (this: Mocha.Context) { - this.timeout(TEST_TIMEOUT_MILLIS); - - await runTest(dirPath, testDefinition, sources, compilerOptions); - }; - - if ( - testDefinition.skip === true || - (testDefinition.skipViaIR === true && - compilerOptions.optimizer?.viaIR === true) || - solcVersionDoesntMatch - ) { - it.skip(desc, func); - } else if (testDefinition.only !== undefined && testDefinition.only) { - // eslint-disable-next-line mocha/no-exclusive-tests - it.only(desc, func); - } else { - it(desc, func); - } -} - -function defineDirTests(dirPath: string, compilerOptions: SolidityCompiler) { - describe(path.basename(dirPath), function () { - const files = fs.readdirSync(dirPath).map((f) => path.join(dirPath, f)); - - const sources = files.filter((f) => f.endsWith(".sol")); - const dirs = files.filter((f) => fs.statSync(f).isDirectory()); - const testPath = path.join(dirPath, "test.json"); - - if (fs.existsSync(testPath)) { - const testDefinition: TestDefinition = JSON.parse( - fs.readFileSync(testPath, "utf8") - ); - - for (const tx of testDefinition.transactions) { - if ("imports" in tx && tx.imports !== undefined) { - sources.push(...tx.imports.map((p: string) => dirPath + p)); - break; - } - } - - let description: string; - if (compilerOptions.optimizer === undefined) { - description = "Without optimizations"; - } else { - if (compilerOptions.optimizer.viaIR) { - description = "With viaIR enabled"; - } else { - description = `With optimizations (${compilerOptions.optimizer.runs} runs)`; - } - } - - describe(description, function () { - defineTest(dirPath, testDefinition, sources, compilerOptions); - }); - - if (process.env.HARDHAT_NETWORK_TESTS_WITH_OPTIMIZATIONS !== undefined) { - const runsNumbers = [1, 200, 10000]; - - for (const runs of runsNumbers) { - describe(`With optimizations (${runs} run)`, function () { - defineTest(dirPath, testDefinition, sources, { - ...compilerOptions, - optimizer: { - viaIR: false, - runs, - }, - }); - }); - } - } - } - - for (const dir of dirs) { - defineDirTests(dir, compilerOptions); - } - }); -} - -async function compileIfNecessary( - testDir: string, - sources: string[], - compilerOptions: SolidityCompiler -): Promise<[CompilerInput, CompilerOutput]> { - const { solidityVersion, optimizer } = compilerOptions; - const maxSourceCtime = sources - .map((s) => fs.statSync(s).ctimeMs) - .reduce((t1, t2) => Math.max(t1, t2), 0); - - // save the artifacts in test-files/artifacts/ - const testFilesDir = path.join(__dirname, "test-files"); - const relativeTestDir = path.relative(testFilesDir, testDir); - const artifacts = path.join(testFilesDir, "artifacts", relativeTestDir); - - fsExtra.ensureDirSync(artifacts); - - let optimizerModifier: string; - if (optimizer !== undefined) { - if (optimizer.viaIR) { - optimizerModifier = `optimized-with-viair-and-runs-${optimizer.runs}`; - } else { - optimizerModifier = `optimized-with-runs-${optimizer.runs}`; - } - } else { - optimizerModifier = "unoptimized"; - } - - const inputPath = path.join( - artifacts, - `compiler-input-solc-${solidityVersion}-${optimizerModifier}.json` - ); - - const outputPath = path.join( - artifacts, - `compiler-output-solc-${solidityVersion}-${optimizerModifier}.json` - ); - - const isCached = - fs.existsSync(inputPath) && - fs.existsSync(outputPath) && - fs.statSync(inputPath).ctimeMs > maxSourceCtime && - fs.statSync(outputPath).ctimeMs > maxSourceCtime; - - const usingCustomSolc = process.env.HARDHAT_TESTS_SOLC_PATH !== undefined; - - if (!usingCustomSolc && isCached) { - const inputJson = fs.readFileSync(inputPath, "utf8"); - const outputJson = fs.readFileSync(outputPath, "utf8"); - - return [JSON.parse(inputJson), JSON.parse(outputJson)]; - } - - const [compilerInput, compilerOutput] = await compileFiles( - sources, - compilerOptions - ); - - if (!usingCustomSolc) { - fs.writeFileSync(inputPath, JSON.stringify(compilerInput, undefined, 2)); - fs.writeFileSync(outputPath, JSON.stringify(compilerOutput, undefined, 2)); - } - - return [compilerInput, compilerOutput]; -} - -function compareStackTraces( - txIndex: number, - trace: SolidityStackTraceEntry[], - description: StackFrameDescription[], - optimizer: SolidityCompilerOptimizer | undefined -) { - const isViaIR = optimizer?.viaIR === true; - - // if IR is enabled, we ignore callstack entries in the comparison - if (isViaIR) { - trace = trace.filter( - (frame) => frame.type !== StackTraceEntryType.CALLSTACK_ENTRY - ); - description = description.filter( - (frame) => frame.type !== "CALLSTACK_ENTRY" - ); - } - - if (trace.length !== description.length) { - console.log(trace); - console.log(description); - } - - assert.equal( - trace.length, - description.length, - `Expected a trace of length ${description.length} but got one with length ${trace.length}` - ); - - for (let i = 0; i < trace.length; i++) { - const actual = trace[i]; - const expected = description[i]; - - const actualErrorType = stackTraceEntryTypeToString(actual.type); - const expectedErrorType = expected.type; - - if ( - isViaIR && - (actualErrorType === "REVERT_ERROR" || - actualErrorType === "OTHER_EXECUTION_ERROR") - ) { - // when viaIR is enabled, we consider a generic REVERT_ERROR or - // OTHER_EXECUTION_ERROR enough and don't compare its contents - continue; - } - - assert.equal( - actualErrorType, - expectedErrorType, - `Stack trace of tx ${txIndex} entry ${i} type is incorrect: expected ${expectedErrorType}, got ${actualErrorType}` - ); - - // actual.message is a ReturnData in revert errors but in custom errors - // we need to decode it - const decodedMessage = - "message" in actual - ? actual.message - : "returnData" in actual && - new ReturnData(actual.returnData).isErrorReturnData() - ? new ReturnData(actual.returnData).decodeError() - : ""; - - if (expected.message !== undefined) { - assert.equal( - decodedMessage, - expected.message, - `Stack trace of tx ${txIndex} entry ${i} have different messages` - ); - } else { - assert.equal( - decodedMessage, - "", - `Stack trace of tx ${txIndex} entry ${i} shouldn't have a message` - ); - } - - if (expected.value !== undefined) { - const actualValue = (actual as any).value; - - assert.isDefined( - actualValue, - `Stack trace of tx ${txIndex} entry ${i} should have value` - ); - - const expectedValue = BigInt(expected.value); - - assert.isTrue( - expectedValue === (actual as any).value, - `Stack trace of tx ${txIndex} entry ${i} has value ${actualValue.toString( - 10 - )} and should have ${expectedValue.toString(10)}` - ); - } else if ("value" in actual) { - assert.isUndefined( - actual.value, - `Stack trace of tx ${txIndex} entry ${i} shouldn't have value` - ); - } - - if (expected.errorCode !== undefined) { - const actualErrorCode = (actual as any).errorCode; - - assert.isDefined( - actualErrorCode, - `Stack trace of tx ${txIndex} entry ${i} should have an errorCode` - ); - - const actualErrorCodeHex = actualErrorCode.toString(16); - - assert.isTrue( - expected.errorCode === actualErrorCodeHex, - `Stack trace of tx ${txIndex} entry ${i} has errorCode ${actualErrorCodeHex} and should have ${expected.errorCode}` - ); - } else if ("errorCode" in actual) { - assert.isUndefined( - actual.errorCode, - `Stack trace of tx ${txIndex} entry ${i} shouldn't have errorCode` - ); - } - - if (expected.sourceReference === undefined) { - assert.isUndefined( - actual.sourceReference, - `Stack trace of tx ${txIndex} entry ${i} shouldn't have a sourceReference` - ); - } else { - if (actual.sourceReference === undefined) { - if (!isViaIR) { - assert.fail("Expected a source reference"); - } - } else { - assert.equal( - actual.sourceReference.contract, - expected.sourceReference.contract, - `Stack trace of tx ${txIndex} entry ${i} have different contract names` - ); - - assert.equal( - actual.sourceReference.sourceName, - expected.sourceReference.file, - `Stack trace of tx ${txIndex} entry ${i} have different file names` - ); - - assert.equal( - actual.sourceReference.function, - expected.sourceReference.function, - `Stack trace of tx ${txIndex} entry ${i} have different function names` - ); - - if (optimizer === undefined) { - assert.equal( - actual.sourceReference!.line, - expected.sourceReference.line, - `Stack trace of tx ${txIndex} entry ${i} have different line numbers` - ); - } - } - } - } - - // We do it here so that the first few do get compared - assert.lengthOf(trace, description.length); -} - -function compareConsoleLogs(logs: string[], expectedLogs?: ConsoleLogs) { - if (expectedLogs === undefined) { - return; - } - - assert.lengthOf(logs, expectedLogs.length); - - for (let i = 0; i < logs.length; i++) { - const actual = logs[i]; - const expected = ConsoleLogger.format(expectedLogs[i]); - - assert.equal(actual, expected); - } -} - -async function runTest( - testDir: string, - testDefinition: TestDefinition, - sources: string[], - compilerOptions: SolidityCompiler -) { - const [compilerInput, compilerOutput] = await compileIfNecessary( - testDir, - sources, - compilerOptions - ); - - const buildInfo: BuildInfo = { - id: "stack-traces-test", - _format: BUILD_INFO_FORMAT_VERSION, - solcVersion: compilerOptions.solidityVersion, - solcLongVersion: compilerOptions.solidityVersion, - input: compilerInput, - output: compilerOutput, - }; - - const tracingConfig: TracingConfig = { - buildInfos: [buildInfo], - ignoreContracts: true, - }; - - const logger = new FakeModulesLogger(); - const solidityTracer = new SolidityTracer(); - const provider = await instantiateProvider( - { - enabled: false, - printLineFn: logger.printLineFn(), - replaceLastLineFn: logger.replaceLastLineFn(), - }, - tracingConfig - ); - - const txIndexToContract: Map = new Map(); - - for (const [txIndex, tx] of testDefinition.transactions.entries()) { - let trace: MessageTrace; - - if ("file" in tx) { - trace = await runDeploymentTransactionTest( - txIndex, - tx, - provider, - compilerOutput, - txIndexToContract - ); - - if (trace.deployedContract !== undefined) { - txIndexToContract.set(txIndex, { - file: tx.file, - name: tx.contract, - address: Buffer.from(trace.deployedContract), - }); - } - } else { - const contract = txIndexToContract.get(tx.to); - - assert.isDefined( - contract, - `No contract was deployed in tx ${tx.to} but transaction ${txIndex} is trying to call it` - ); - - trace = await runCallTransactionTest( - txIndex, - tx, - provider, - compilerOutput, - contract! - ); - } - - const vmTraceDecoder = (provider as any)._vmTraceDecoder as VmTraceDecoderT; - const decodedTrace = vmTraceDecoder.tryToDecodeMessageTrace(trace); - - try { - if (tx.stackTrace === undefined) { - assert.isFalse( - trace.exit.isError(), - `Transaction ${txIndex} shouldn't have failed (${trace.exit.getReason()})` - ); - } else { - assert.isDefined( - trace.exit.isError(), - `Transaction ${txIndex} should have failed` - ); - } - } catch (error) { - printMessageTrace(decodedTrace); - - throw error; - } - - if (trace.exit.isError()) { - const stackTrace = solidityTracer.getStackTrace(decodedTrace); - - try { - compareStackTraces( - txIndex, - stackTrace, - tx.stackTrace!, - compilerOptions.optimizer - ); - if (testDefinition.print !== undefined && testDefinition.print) { - console.log(`Transaction ${txIndex} stack trace`); - printStackTrace(stackTrace); - } - } catch (err) { - printMessageTrace(decodedTrace); - printStackTrace(stackTrace); - - throw err; - } - } - - compareConsoleLogs(logger.lines, tx.consoleLogs); - } -} - -function linkBytecode( - txIndex: number, - bytecode: CompilerOutputBytecode, - libs: { [file: string]: { [lib: string]: number } }, - txIndexToContract: Map -): Buffer { - let code = bytecode.object; - - for (const [file, fileLibs] of Object.entries(bytecode.linkReferences)) { - assert.isDefined( - libs, - `Libraries missing for deploying transaction ${txIndex}` - ); - - assert.isDefined( - libs[file], - `Libraries missing for deploying transaction ${txIndex}` - ); - - for (const [libName, references] of Object.entries(fileLibs)) { - assert.isDefined( - libs[file][libName], - `Libraries missing for deploying transaction ${txIndex}` - ); - - const libTxId = libs[file][libName]; - const address = txIndexToContract.get(libTxId); - - assert.isDefined( - address, - `Trying to link a library deployed in ${libTxId} for tx ${txIndex} but id doesn't exist` - ); - - for (const ref of references) { - code = linkHexStringBytecode( - code, - address!.address.toString("hex"), - ref.start - ); - } - } - } - - assert.notInclude( - code, - "_", - `Libraries missing for deploying transaction ${txIndex}` - ); - - return Buffer.from(code, "hex"); -} - -async function runDeploymentTransactionTest( - txIndex: number, - tx: DeploymentTransaction, - provider: EdrProviderWrapper, - compilerOutput: CompilerOutput, - txIndexToContract: Map -): Promise { - const file = compilerOutput.contracts[tx.file]; - - assert.isDefined( - file, - `File ${tx.file} from transaction ${txIndex} doesn't exist` - ); - - const contract = file[tx.contract]; - - assert.isDefined( - contract, - `Contract ${tx.contract} from transaction ${txIndex} doesn't exist` - ); - - const deploymentBytecode = linkBytecode( - txIndex, - contract.evm.bytecode, - tx.libraries, - txIndexToContract - ); - - const params = encodeConstructorParams( - contract.abi, - tx.params !== undefined ? tx.params : [] - ); - - const data = Buffer.concat([deploymentBytecode, params]); - - const trace = await traceTransaction(provider, { - value: tx.value !== undefined ? BigInt(tx.value) : undefined, - data, - gas: tx.gas !== undefined ? BigInt(tx.gas) : undefined, - }); - - return trace as CreateMessageTrace; -} - -async function runCallTransactionTest( - txIndex: number, - tx: CallTransaction, - provider: EdrProviderWrapper, - compilerOutput: CompilerOutput, - contract: DeployedContract -): Promise { - const compilerContract = - compilerOutput.contracts[contract.file][contract.name]; - - let data: Buffer; - - if (tx.data !== undefined) { - data = Buffer.from(toBytes(tx.data)); - } else if (tx.function !== undefined) { - data = encodeCall( - compilerContract.abi, - tx.function, - tx.params !== undefined ? tx.params : [] - ); - } else { - data = Buffer.from([]); - } - - const trace = await traceTransaction(provider, { - to: contract.address, - value: tx.value !== undefined ? BigInt(tx.value) : undefined, - data, - gas: tx.gas !== undefined ? BigInt(tx.gas) : undefined, - }); - - return trace as CallMessageTrace; -} - -const onlyLatestSolcVersions = - process.env.HARDHAT_TESTS_ALL_SOLC_VERSIONS !== "true"; - -const filterSolcVersionBy = - (versionRange: string) => - ({ solidityVersion, latestSolcVersion }: SolidityCompiler) => { - if (onlyLatestSolcVersions && latestSolcVersion !== true) { - return false; - } - - return semver.satisfies(solidityVersion, versionRange); - }; - -const solidity05Compilers = solidityCompilers.filter( - filterSolcVersionBy("^0.5.0") -); -const solidity06Compilers = solidityCompilers.filter( - filterSolcVersionBy("^0.6.0") -); -const solidity07Compilers = solidityCompilers.filter( - filterSolcVersionBy("^0.7.0") -); -const solidity08Compilers = solidityCompilers.filter( - filterSolcVersionBy("^0.8.0") -); - -describe("Stack traces", function () { - setCWD(); - - // if a path to a solc file was specified, we only run these tests and use - // that compiler - const customSolcPath = process.env.HARDHAT_TESTS_SOLC_PATH; - if (customSolcPath !== undefined) { - const customSolcVersion = process.env.HARDHAT_TESTS_SOLC_VERSION; - - if (customSolcVersion === undefined) { - console.error( - "HARDHAT_TESTS_SOLC_VERSION has to be set when using HARDHAT_TESTS_SOLC_PATH" - ); - process.exit(1); - } - - if (!path.isAbsolute(customSolcPath)) { - console.error("HARDHAT_TESTS_SOLC_PATH has to be an absolute path"); - process.exit(1); - } - - // eslint-disable-next-line mocha/no-exclusive-tests - describe.only(`Use compiler at ${customSolcPath} with version ${customSolcVersion}`, function () { - const compilerOptions = { - solidityVersion: customSolcVersion, - compilerPath: customSolcPath, - }; - - const testsDir = semver.satisfies(customSolcVersion, "^0.5.0") - ? "0_5" - : semver.satisfies(customSolcVersion, "^0.6.0") - ? "0_6" - : semver.satisfies(customSolcVersion, "^0.7.0") - ? "0_7" - : semver.satisfies(customSolcVersion, "^0.8.0") - ? "0_8" - : null; - - if (testsDir === null) { - console.error(`There are no tests for version ${customSolcVersion}`); - process.exit(1); - } - - defineDirTests( - path.join(__dirname, "test-files", testsDir), - compilerOptions - ); - - defineDirTests( - path.join(__dirname, "test-files", "version-independent"), - compilerOptions - ); - }); - - return; - } - - before("Download solc binaries", async function () { - const solidityCompilersToDownload = [ - ...solidity05Compilers, - ...solidity06Compilers, - ...solidity07Compilers, - ...solidity08Compilers, - ]; - - this.timeout( - solidityCompilersToDownload.length * COMPILER_DOWNLOAD_TIMEOUT - ); - - for (const { solidityVersion } of solidityCompilersToDownload) { - await downloadCompiler(solidityVersion); - } - }); - - defineTestForSolidityMajorVersion(solidity05Compilers, "0_5"); - defineTestForSolidityMajorVersion(solidity06Compilers, "0_6"); - defineTestForSolidityMajorVersion(solidity07Compilers, "0_7"); - defineTestForSolidityMajorVersion(solidity08Compilers, "0_8"); -}); - -describe("Solidity support", function () { - it("check that the latest tested version is within the supported version range", async function () { - const latestSupportedVersion = getLatestSupportedVersion(); - assert.isTrue( - semver.satisfies( - latestSupportedVersion, - SUPPORTED_SOLIDITY_VERSION_RANGE - ), - `Expected ${latestSupportedVersion} to be within the ${SUPPORTED_SOLIDITY_VERSION_RANGE} range` - ); - - const nextPatchVersion = semver.inc(latestSupportedVersion, "patch")!; - const nextMinorVersion = semver.inc(latestSupportedVersion, "minor")!; - const nextMajorVersion = semver.inc(latestSupportedVersion, "major")!; - - assert.isFalse( - semver.satisfies(nextPatchVersion, SUPPORTED_SOLIDITY_VERSION_RANGE), - `Expected ${nextPatchVersion} to not be within the ${SUPPORTED_SOLIDITY_VERSION_RANGE} range` - ); - assert.isFalse( - semver.satisfies(nextMinorVersion, SUPPORTED_SOLIDITY_VERSION_RANGE), - `Expected ${nextMinorVersion} to not be within the ${SUPPORTED_SOLIDITY_VERSION_RANGE} range` - ); - assert.isFalse( - semver.satisfies(nextMajorVersion, SUPPORTED_SOLIDITY_VERSION_RANGE), - `Expected ${nextMajorVersion} to not be within the ${SUPPORTED_SOLIDITY_VERSION_RANGE} range` - ); - }); -}); - -function defineTestForSolidityMajorVersion( - solcVersionsCompilerOptions: SolidityCompiler[], - testsPath: string -) { - for (const compilerOptions of solcVersionsCompilerOptions) { - // eslint-disable-next-line mocha/no-exclusive-tests - const describeFn = compilerOptions.only === true ? describe.only : describe; - - describeFn(`Use compiler ${compilerOptions.compilerPath}`, function () { - defineDirTests( - path.join(__dirname, "test-files", testsPath), - compilerOptions - ); - - defineDirTests( - path.join(__dirname, "test-files", "version-independent"), - compilerOptions - ); - }); - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f590795e46..ec55390e8e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,8 +201,8 @@ importers: specifier: ^4.0.0 version: 4.0.1 '@nomicfoundation/edr': - specifier: ^0.6.5 - version: 0.6.5 + specifier: ^0.7.0 + version: 0.7.0 '@nomicfoundation/ethereumjs-common': specifier: 4.0.4 version: 4.0.4 @@ -2320,36 +2320,36 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@nomicfoundation/edr-darwin-arm64@0.6.5': - resolution: {integrity: sha512-A9zCCbbNxBpLgjS1kEJSpqxIvGGAX4cYbpDYCU2f3jVqOwaZ/NU761y1SvuCRVpOwhoCXqByN9b7HPpHi0L4hw==} + '@nomicfoundation/edr-darwin-arm64@0.7.0': + resolution: {integrity: sha512-vAH20oh4GaSB/iQFTRcoO8jLc0CLd9XuLY9I7vtcqZWAiM4U1J4Y8cu67PWmtxbvUQOqXR7S6FtAr8/AlWm14g==} engines: {node: '>= 18'} - '@nomicfoundation/edr-darwin-x64@0.6.5': - resolution: {integrity: sha512-x3zBY/v3R0modR5CzlL6qMfFMdgwd6oHrWpTkuuXnPFOX8SU31qq87/230f4szM+ukGK8Hi+mNq7Ro2VF4Fj+w==} + '@nomicfoundation/edr-darwin-x64@0.7.0': + resolution: {integrity: sha512-WHDdIrPvLlgXQr2eKypBM5xOZAwdxhDAEQIvEMQL8tEEm2qYW2bliUlssBPrs8E3bdivFbe1HizImslMAfU3+g==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-arm64-gnu@0.6.5': - resolution: {integrity: sha512-HGpB8f1h8ogqPHTyUpyPRKZxUk2lu061g97dOQ/W4CxevI0s/qiw5DB3U3smLvSnBHKOzYS1jkxlMeGN01ky7A==} + '@nomicfoundation/edr-linux-arm64-gnu@0.7.0': + resolution: {integrity: sha512-WXpJB54ukz1no7gxCPXVEw9pgl/9UZ/WO3l1ctyv/T7vOygjqA4SUd6kppTs6MNXAuTiisPtvJ/fmvHiMBLrsw==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-arm64-musl@0.6.5': - resolution: {integrity: sha512-ESvJM5Y9XC03fZg9KaQg3Hl+mbx7dsSkTIAndoJS7X2SyakpL9KZpOSYrDk135o8s9P9lYJdPOyiq+Sh+XoCbQ==} + '@nomicfoundation/edr-linux-arm64-musl@0.7.0': + resolution: {integrity: sha512-1iZYOcEgc+zJI7JQrlAFziuy9sBz1WgnIx3HIIu0J7lBRZ/AXeHHgATb+4InqxtEx9O3W8A0s7f11SyFqJL4Aw==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-x64-gnu@0.6.5': - resolution: {integrity: sha512-HCM1usyAR1Ew6RYf5AkMYGvHBy64cPA5NMbaeY72r0mpKaH3txiMyydcHibByOGdQ8iFLWpyUdpl1egotw+Tgg==} + '@nomicfoundation/edr-linux-x64-gnu@0.7.0': + resolution: {integrity: sha512-wSjC94WcR5MM8sg9w3OsAmT6+bbmChJw6uJKoXR3qscps/jdhjzJWzfgT0XGRq3XMUfimyafW2RWOyfX3ouhrQ==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-x64-musl@0.6.5': - resolution: {integrity: sha512-nB2uFRyczhAvWUH7NjCsIO6rHnQrof3xcCe6Mpmnzfl2PYcGyxN7iO4ZMmRcQS7R1Y670VH6+8ZBiRn8k43m7A==} + '@nomicfoundation/edr-linux-x64-musl@0.7.0': + resolution: {integrity: sha512-Us22+AZ7wkG1mZwxqE4S4ZcuwkEA5VrUiBOJSvKHGOgy6vFvB/Euh5Lkp4GovwjrtiXuvyGO2UmtkzymZKDxZw==} engines: {node: '>= 18'} - '@nomicfoundation/edr-win32-x64-msvc@0.6.5': - resolution: {integrity: sha512-B9QD/4DSSCFtWicO8A3BrsnitO1FPv7axB62wq5Q+qeJ50yJlTmyeGY3cw62gWItdvy2mh3fRM6L1LpnHiB77A==} + '@nomicfoundation/edr-win32-x64-msvc@0.7.0': + resolution: {integrity: sha512-HAry0heTsWkzReVtjHwoIq3BgFCvXpVhJ5qPmTnegZGsr/KxqvMmHyDMifzKao4bycU8yrpTSyOiAJt27RWjzQ==} engines: {node: '>= 18'} - '@nomicfoundation/edr@0.6.5': - resolution: {integrity: sha512-tAqMslLP+/2b2sZP4qe9AuGxG3OkQ5gGgHE4isUuq6dUVjwCRPFhAOhpdFl+OjY5P3yEv3hmq9HjUGRa2VNjng==} + '@nomicfoundation/edr@0.7.0': + resolution: {integrity: sha512-+Zyu7TE47TGNcPhOfWLPA/zISs32WDMXrhSWdWYyPHDVn/Uux5TVuOeScKb0BR/R8EJ+leR8COUF/EGxvDOVKg==} engines: {node: '>= 18'} '@nomicfoundation/ethereumjs-block@5.0.4': @@ -4099,6 +4099,7 @@ packages: ethereumjs-abi@0.6.8: resolution: {integrity: sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==} + deprecated: This library has been deprecated and usage is discouraged. ethereumjs-util@6.2.1: resolution: {integrity: sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==} @@ -8031,29 +8032,29 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@nomicfoundation/edr-darwin-arm64@0.6.5': {} + '@nomicfoundation/edr-darwin-arm64@0.7.0': {} - '@nomicfoundation/edr-darwin-x64@0.6.5': {} + '@nomicfoundation/edr-darwin-x64@0.7.0': {} - '@nomicfoundation/edr-linux-arm64-gnu@0.6.5': {} + '@nomicfoundation/edr-linux-arm64-gnu@0.7.0': {} - '@nomicfoundation/edr-linux-arm64-musl@0.6.5': {} + '@nomicfoundation/edr-linux-arm64-musl@0.7.0': {} - '@nomicfoundation/edr-linux-x64-gnu@0.6.5': {} + '@nomicfoundation/edr-linux-x64-gnu@0.7.0': {} - '@nomicfoundation/edr-linux-x64-musl@0.6.5': {} + '@nomicfoundation/edr-linux-x64-musl@0.7.0': {} - '@nomicfoundation/edr-win32-x64-msvc@0.6.5': {} + '@nomicfoundation/edr-win32-x64-msvc@0.7.0': {} - '@nomicfoundation/edr@0.6.5': + '@nomicfoundation/edr@0.7.0': dependencies: - '@nomicfoundation/edr-darwin-arm64': 0.6.5 - '@nomicfoundation/edr-darwin-x64': 0.6.5 - '@nomicfoundation/edr-linux-arm64-gnu': 0.6.5 - '@nomicfoundation/edr-linux-arm64-musl': 0.6.5 - '@nomicfoundation/edr-linux-x64-gnu': 0.6.5 - '@nomicfoundation/edr-linux-x64-musl': 0.6.5 - '@nomicfoundation/edr-win32-x64-msvc': 0.6.5 + '@nomicfoundation/edr-darwin-arm64': 0.7.0 + '@nomicfoundation/edr-darwin-x64': 0.7.0 + '@nomicfoundation/edr-linux-arm64-gnu': 0.7.0 + '@nomicfoundation/edr-linux-arm64-musl': 0.7.0 + '@nomicfoundation/edr-linux-x64-gnu': 0.7.0 + '@nomicfoundation/edr-linux-x64-musl': 0.7.0 + '@nomicfoundation/edr-win32-x64-msvc': 0.7.0 '@nomicfoundation/ethereumjs-block@5.0.4': dependencies: