From 066354ce05a5ceeaa399b10ba180c0a8e02e9d43 Mon Sep 17 00:00:00 2001 From: Wodann Date: Tue, 16 Dec 2025 03:37:42 +0000 Subject: [PATCH 01/39] refactor: remove custom debug_* logic --- .../hardhat-network/provider/provider.ts | 6 -- .../provider/utils/convertToEdr.ts | 56 ------------------- 2 files changed, 62 deletions(-) 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 0c4f0b297a9..b44199a1732 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -67,7 +67,6 @@ import { MempoolOrder, } from "./node-types"; import { - edrRpcDebugTraceToHardhat, edrTracingMessageResultToMinimalEVMResult, edrTracingMessageToMinimalMessage, edrTracingStepToMinimalInterpreterStep, @@ -478,11 +477,6 @@ export class EdrProviderWrapper // e.g. `HardhatNetwork/2.19.0/@nomicfoundation/edr/0.2.0-dev` if (args.method === "web3_clientVersion") { return clientVersion(response.result); - } else if ( - args.method === "debug_traceTransaction" || - args.method === "debug_traceCall" - ) { - return edrRpcDebugTraceToHardhat(response.result); } else { return response.result; } diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index 7fc17b29c04..4dc5ebf3db2 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -174,62 +174,6 @@ export function ethereumjsMempoolOrderToEdrMineOrdering( } } -export function edrRpcDebugTraceToHardhat( - rpcDebugTrace: DebugTraceResult -): RpcDebugTraceOutput { - const structLogs = rpcDebugTrace.structLogs.map((log) => { - const result: RpcStructLog = { - depth: Number(log.depth), - gas: Number(log.gas), - gasCost: Number(log.gasCost), - op: log.opName, - pc: Number(log.pc), - }; - - if (log.memory !== undefined) { - result.memory = log.memory; - } - - if (log.stack !== undefined) { - // Remove 0x prefix which is required by EIP-3155, but not expected by Hardhat. - result.stack = log.stack?.map((item) => item.slice(2)); - } - - if (log.storage !== undefined) { - result.storage = Object.fromEntries( - Object.entries(log.storage).map(([key, value]) => { - return [key.slice(2), value.slice(2)]; - }) - ); - } - - if (log.error !== undefined) { - result.error = { - message: log.error, - }; - } - - return result; - }); - - // REVM trace adds initial STOP that Hardhat doesn't expect - if (structLogs.length > 0 && structLogs[0].op === "STOP") { - structLogs.shift(); - } - - let returnValue = rpcDebugTrace.output?.toString() ?? ""; - if (returnValue === "0x") { - returnValue = ""; - } - - return { - failed: !rpcDebugTrace.pass, - gas: Number(rpcDebugTrace.gasUsed), - returnValue, - structLogs, - }; -} - export function edrTracingStepToMinimalInterpreterStep( step: TracingStep ): MinimalInterpreterStep { From 81028cacb019fb4b70f2ced787de8b0dc7aac397 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 2 Feb 2026 22:47:22 +0000 Subject: [PATCH 02/39] WIP: refactor: unify tracing architecture --- .../hardhat-network/provider/provider.ts | 131 ++++++++++-------- 1 file changed, 72 insertions(+), 59 deletions(-) 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 b44199a1732..c19b8e2c719 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -385,75 +385,88 @@ export class EdrProviderWrapper response = responseObject.data; } - const needsTraces = - this._node._vm.evm.events.eventNames().length > 0 || - this._node._vm.events.eventNames().length > 0; - - if (needsTraces) { - const rawTraces = responseObject.traces; - for (const rawTrace of rawTraces) { - // For other consumers in JS we need to marshall the entire trace over FFI - const trace = rawTrace.trace; - - // beforeTx event - if (this._node._vm.events.listenerCount("beforeTx") > 0) { - this._node._vm.events.emit("beforeTx"); - } - - for (const traceItem of trace) { - // step event - if ("pc" in traceItem) { - if (this._node._vm.evm.events.listenerCount("step") > 0) { - this._node._vm.evm.events.emit( - "step", - edrTracingStepToMinimalInterpreterStep(traceItem) - ); - } - } - // afterMessage event - else if ("executionResult" in traceItem) { - if (this._node._vm.evm.events.listenerCount("afterMessage") > 0) { - this._node._vm.evm.events.emit( - "afterMessage", - edrTracingMessageResultToMinimalEVMResult(traceItem) - ); - } - } - // beforeMessage event - else { - if (this._node._vm.evm.events.listenerCount("beforeMessage") > 0) { - this._node._vm.evm.events.emit( - "beforeMessage", - edrTracingMessageToMinimalMessage(traceItem) - ); - } - } - } - - // afterTx event - if (this._node._vm.events.listenerCount("afterTx") > 0) { - this._node._vm.events.emit("afterTx"); - } - } - } + // TODO: re-enable tracing events once EDR adds backwards compatibility support + // const needsTraces = + // this._node._vm.evm.events.eventNames().length > 0 || + // this._node._vm.events.eventNames().length > 0; + + // if (needsTraces) { + // const rawTraces = responseObject.traces; + // for (const rawTrace of rawTraces) { + // // For other consumers in JS we need to marshall the entire trace over FFI + // const trace = rawTrace.trace; + + // // beforeTx event + // if (this._node._vm.events.listenerCount("beforeTx") > 0) { + // this._node._vm.events.emit("beforeTx"); + // } + + // for (const traceItem of trace) { + // // step event + // if ("pc" in traceItem) { + // if (this._node._vm.evm.events.listenerCount("step") > 0) { + // this._node._vm.evm.events.emit( + // "step", + // edrTracingStepToMinimalInterpreterStep(traceItem) + // ); + // } + // } + // // afterMessage event + // else if ("executionResult" in traceItem) { + // if (this._node._vm.evm.events.listenerCount("afterMessage") > 0) { + // this._node._vm.evm.events.emit( + // "afterMessage", + // edrTracingMessageResultToMinimalEVMResult(traceItem) + // ); + // } + // } + // // beforeMessage event + // else { + // if (this._node._vm.evm.events.listenerCount("beforeMessage") > 0) { + // this._node._vm.evm.events.emit( + // "beforeMessage", + // edrTracingMessageToMinimalMessage(traceItem) + // ); + // } + // } + // } + + // // afterTx event + // if (this._node._vm.events.listenerCount("afterTx") > 0) { + // this._node._vm.events.emit("afterTx"); + // } + // } + // } if (isErrorResponse(response)) { let error; - let stackTrace: SolidityStackTrace | null = null; - try { - stackTrace = responseObject.stackTrace(); - } catch (e) { - log("Failed to get stack trace: %O", e); - } + const stackTrace = responseObject.stackTrace(); - if (stackTrace !== null) { - error = encodeSolidityStackTrace(response.error.message, stackTrace); + if (stackTrace?.kind === "StackTrace") { + error = encodeSolidityStackTrace( + response.error.message, + stackTrace.entries + ); // Pass data and transaction hash from the original error (error as any).data = response.error.data?.data ?? undefined; (error as any).transactionHash = response.error.data?.transactionHash ?? undefined; } else { + if (stackTrace !== null) { + switch (stackTrace.kind) { + case "UnexpectedError": + log( + "Failed to get stack trace due to error: %O", + stackTrace.errorMessage + ); + break; + case "HeuristicFailed": + log("Failed to get stack trace due to failing heuristics"); + break; + } + } + if (response.error.code === InvalidArgumentsError.CODE) { error = new InvalidArgumentsError(response.error.message); } else { From 50057713cc08c5b1e4e063475278fbcfdc7bf230 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 2 Feb 2026 22:51:08 +0000 Subject: [PATCH 03/39] fix: outdated typing on skipped TS test --- packages/hardhat-core/test/builtin-tasks/compile.ts | 4 ++-- packages/hardhat-core/test/helpers/compilation.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hardhat-core/test/builtin-tasks/compile.ts b/packages/hardhat-core/test/builtin-tasks/compile.ts index f89635e1237..b27c5eb1b80 100644 --- a/packages/hardhat-core/test/builtin-tasks/compile.ts +++ b/packages/hardhat-core/test/builtin-tasks/compile.ts @@ -1,4 +1,4 @@ -import { getLatestSupportedSolcVersion } from "@nomicfoundation/edr"; +import { latestSupportedSolidityVersion } from "@nomicfoundation/edr"; import { assert, expect } from "chai"; import ci from "ci-info"; import * as fsExtra from "fs-extra"; @@ -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 = getLatestSupportedSolcVersion(); + const lastSolcVersion = latestSupportedSolidityVersion(); assert.equal( userConfigSolcVersion, diff --git a/packages/hardhat-core/test/helpers/compilation.ts b/packages/hardhat-core/test/helpers/compilation.ts index 88cf339bd8f..1cb00c1f7a7 100644 --- a/packages/hardhat-core/test/helpers/compilation.ts +++ b/packages/hardhat-core/test/helpers/compilation.ts @@ -1,4 +1,4 @@ -import { getLatestSupportedSolcVersion } from "@nomicfoundation/edr"; +import { latestSupportedSolidityVersion } from "@nomicfoundation/edr"; import semver from "semver"; import { @@ -159,7 +159,7 @@ async function downloadCompiler(solidityVersion: string): Promise { } export const getNextUnsupportedVersion = () => - semver.inc(getLatestSupportedSolcVersion(), "patch")!; + semver.inc(latestSupportedSolidityVersion(), "patch")!; export const getNextNextUnsupportedVersion = () => semver.inc(getNextUnsupportedVersion(), "patch")!; From e7379143cc06dc34a152d973f85a60f2bd7172cb Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 19 Feb 2026 18:13:56 +0000 Subject: [PATCH 04/39] refactor: use new traces API of EDR --- .../hardhat-network/provider/provider.ts | 100 +++++++++--------- .../provider/utils/convertToEdr.ts | 44 +++----- 2 files changed, 63 insertions(+), 81 deletions(-) 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 c19b8e2c719..394ff09ac37 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -385,58 +385,54 @@ export class EdrProviderWrapper response = responseObject.data; } - // TODO: re-enable tracing events once EDR adds backwards compatibility support - // const needsTraces = - // this._node._vm.evm.events.eventNames().length > 0 || - // this._node._vm.events.eventNames().length > 0; - - // if (needsTraces) { - // const rawTraces = responseObject.traces; - // for (const rawTrace of rawTraces) { - // // For other consumers in JS we need to marshall the entire trace over FFI - // const trace = rawTrace.trace; - - // // beforeTx event - // if (this._node._vm.events.listenerCount("beforeTx") > 0) { - // this._node._vm.events.emit("beforeTx"); - // } - - // for (const traceItem of trace) { - // // step event - // if ("pc" in traceItem) { - // if (this._node._vm.evm.events.listenerCount("step") > 0) { - // this._node._vm.evm.events.emit( - // "step", - // edrTracingStepToMinimalInterpreterStep(traceItem) - // ); - // } - // } - // // afterMessage event - // else if ("executionResult" in traceItem) { - // if (this._node._vm.evm.events.listenerCount("afterMessage") > 0) { - // this._node._vm.evm.events.emit( - // "afterMessage", - // edrTracingMessageResultToMinimalEVMResult(traceItem) - // ); - // } - // } - // // beforeMessage event - // else { - // if (this._node._vm.evm.events.listenerCount("beforeMessage") > 0) { - // this._node._vm.evm.events.emit( - // "beforeMessage", - // edrTracingMessageToMinimalMessage(traceItem) - // ); - // } - // } - // } - - // // afterTx event - // if (this._node._vm.events.listenerCount("afterTx") > 0) { - // this._node._vm.events.emit("afterTx"); - // } - // } - // } + const needsTraces = + this._node._vm.evm.events.eventNames().length > 0 || + this._node._vm.events.eventNames().length > 0; + + if (needsTraces) { + const rawTraces = responseObject.traces(); + for (const trace of rawTraces) { + // beforeTx event + if (this._node._vm.events.listenerCount("beforeTx") > 0) { + this._node._vm.events.emit("beforeTx"); + } + + for (const traceItem of trace) { + // step event + if ("pc" in traceItem) { + if (this._node._vm.evm.events.listenerCount("step") > 0) { + this._node._vm.evm.events.emit( + "step", + edrTracingStepToMinimalInterpreterStep(traceItem) + ); + } + } + // afterMessage event + else if ("execResult" in traceItem) { + if (this._node._vm.evm.events.listenerCount("afterMessage") > 0) { + this._node._vm.evm.events.emit( + "afterMessage", + edrTracingMessageResultToMinimalEVMResult(traceItem) + ); + } + } + // beforeMessage event + else { + if (this._node._vm.evm.events.listenerCount("beforeMessage") > 0) { + this._node._vm.evm.events.emit( + "beforeMessage", + edrTracingMessageToMinimalMessage(traceItem) + ); + } + } + } + + // afterTx event + if (this._node._vm.events.listenerCount("afterTx") > 0) { + this._node._vm.events.emit("afterTx"); + } + } + } if (isErrorResponse(response)) { let error; diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index 4dc5ebf3db2..c6be433f86f 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -178,53 +178,39 @@ export function edrTracingStepToMinimalInterpreterStep( step: TracingStep ): MinimalInterpreterStep { const minimalInterpreterStep: MinimalInterpreterStep = { - pc: Number(step.pc), + pc: step.pc, depth: step.depth, opcode: { - name: step.opcode, + name: step.opcode.name, }, stack: step.stack, + memory: step.memory, }; - if (step.memory !== undefined) { - minimalInterpreterStep.memory = step.memory; - } - return minimalInterpreterStep; } export function edrTracingMessageResultToMinimalEVMResult( tracingMessageResult: TracingMessageResult ): MinimalEVMResult { - const { result, contractAddress } = tracingMessageResult.executionResult; - - // only SuccessResult has logs - const success = "logs" in result; + const execResult = tracingMessageResult.execResult; const minimalEVMResult: MinimalEVMResult = { execResult: { - executionGasUsed: result.gasUsed, - success, + success: execResult.success, + executionGasUsed: execResult.executionGasUsed, + contractAddress: + execResult.contractAddress !== undefined + ? new Address(execResult.contractAddress) + : undefined, + reason: execResult.reason, + output: + execResult.output !== undefined + ? Buffer.from(execResult.output) + : undefined, }, }; - // only success and exceptional halt have reason - if ("reason" in result) { - minimalEVMResult.execResult.reason = result.reason; - } - if ("output" in result) { - const { output } = result; - if (output instanceof Uint8Array) { - minimalEVMResult.execResult.output = Buffer.from(output); - } else { - minimalEVMResult.execResult.output = Buffer.from(output.returnValue); - } - } - - if (contractAddress !== undefined) { - minimalEVMResult.execResult.contractAddress = new Address(contractAddress); - } - return minimalEVMResult; } From a9e372209ed0cb0662488eafc3881f60cf2de3de Mon Sep 17 00:00:00 2001 From: Wodann Date: Fri, 20 Feb 2026 17:04:03 +0000 Subject: [PATCH 05/39] fix: always enable traces --- .../src/internal/hardhat-network/provider/provider.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 394ff09ac37..b4957a4f714 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -21,7 +21,11 @@ import type { AccountOverride, } from "@nomicfoundation/edr"; import { privateToAddress } from "@ethereumjs/util"; -import { ContractDecoder, precompileP256Verify } from "@nomicfoundation/edr"; +import { + ContractDecoder, + IncludeTraces, + precompileP256Verify, +} from "@nomicfoundation/edr"; import picocolors from "picocolors"; import debug from "debug"; import { EventEmitter } from "events"; @@ -267,7 +271,9 @@ export class EdrProviderWrapper }, }, networkId: BigInt(config.networkId), - observability: {}, + observability: { + includeCallTraces: IncludeTraces.All, + }, ownedAccounts, // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 // when being run from `solidity-coverage`. From 429d582f819a3d31c2677eb368b7c1bf34f40970 Mon Sep 17 00:00:00 2001 From: Wodann Date: Wed, 8 Jul 2026 05:30:27 +0000 Subject: [PATCH 06/39] build: update to latest EDR --- .../hardhat-network/provider/provider.ts | 91 ++++++++++++------- 1 file changed, 59 insertions(+), 32 deletions(-) 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 b4957a4f714..5819d4ce124 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -25,6 +25,7 @@ import { ContractDecoder, IncludeTraces, precompileP256Verify, + StackSnapshotType, } from "@nomicfoundation/edr"; import picocolors from "picocolors"; import debug from "debug"; @@ -164,7 +165,9 @@ export class EdrProviderWrapper // calls, in case there is switching between local and fork configurations. private readonly _originalGenesisAccounts: GenesisAccount[], private readonly _originalCacheDir: string | undefined, - private readonly _originalChainOverrides: ChainOverride[] | undefined + private readonly _originalChainOverrides: ChainOverride[] | undefined, + private readonly _originalGenesisBlockGasLimit: bigint, + private readonly _originalGenesisBlockTime: bigint | undefined ) { super(); } @@ -203,25 +206,29 @@ export class EdrProviderWrapper const cacheDir = config.forkCachePath; - let fork; - if (config.forkConfig !== undefined) { - fork = { - blockNumber: - config.forkConfig.blockNumber !== undefined - ? BigInt(config.forkConfig.blockNumber) - : undefined, - cacheDir, - chainOverrides, - httpHeaders: httpHeadersToEdr(config.forkConfig.httpHeaders), - url: config.forkConfig.jsonRpcUrl, - }; - } - - const initialDate = + const genesisBlockGasLimit = BigInt(config.blockGasLimit); + const genesisBlockTime = config.initialDate !== undefined ? BigInt(Math.floor(config.initialDate.getTime() / 1000)) : undefined; + const network = + config.forkConfig !== undefined + ? { + blockNumber: + config.forkConfig.blockNumber !== undefined + ? BigInt(config.forkConfig.blockNumber) + : undefined, + cacheDir, + chainOverrides, + httpHeaders: httpHeadersToEdr(config.forkConfig.httpHeaders), + url: config.forkConfig.jsonRpcUrl, + } + : { + genesisBlockGasLimit, + genesisBlockTime, + }; + // To accommodate construction ordering, we need an adapter to forward events // from the EdrProvider callback to the wrapper's listener const eventAdapter = new EdrProviderEventAdapter(); @@ -233,7 +240,7 @@ export class EdrProviderWrapper const edrHardfork = ethereumsjsHardforkToEdrSpecId(hardforkName); const [genesisState, ownedAccounts] = _genesisStateAndOwnedAccounts( - fork !== undefined, + config.forkConfig !== undefined, edrHardfork, config.genesisAccounts ); @@ -250,14 +257,12 @@ export class EdrProviderWrapper allowUnlimitedContractSize: config.allowUnlimitedContractSize, bailOnCallFailure: config.throwOnCallFailures, bailOnTransactionFailure: config.throwOnTransactionFailures, - blockGasLimit: BigInt(config.blockGasLimit), chainId: BigInt(config.chainId), coinbase: Buffer.from(coinbase.slice(2), "hex"), + defaultTransactionGasLimit: BigInt(config.blockGasLimit), precompileOverrides, - fork, genesisState, hardfork: edrHardfork, - initialDate, initialBaseFeePerGas: config.initialBaseFeePerGas !== undefined ? BigInt(config.initialBaseFeePerGas!) @@ -265,14 +270,17 @@ export class EdrProviderWrapper minGasPrice: config.minGasPrice, mining: { autoMine: config.automine, + blockGasLimit: BigInt(config.blockGasLimit), interval: ethereumjsIntervalMiningConfigToEdr(config.intervalMining), memPool: { order: ethereumjsMempoolOrderToEdrMineOrdering(config.mempoolOrder), }, }, + network, networkId: BigInt(config.networkId), observability: { includeCallTraces: IncludeTraces.All, + recordStack: StackSnapshotType.Top, }, ownedAccounts, // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 @@ -337,7 +345,9 @@ export class EdrProviderWrapper edrSubscriptionConfig, config.genesisAccounts, cacheDir, - chainOverrides + chainOverrides, + genesisBlockGasLimit, + genesisBlockTime ); // Pass through all events from the provider @@ -448,7 +458,12 @@ export class EdrProviderWrapper if (stackTrace?.kind === "StackTrace") { error = encodeSolidityStackTrace( response.error.message, - stackTrace.entries + // EDR's `SolidityStackTraceEntry` union includes + // `CheatcodeErrorStackTraceEntry`, which Hardhat's local copy + // doesn't know about. Cheatcodes only fire from solidity-test + // runs, never from the network-provider path; the cast is safe + // at runtime. + stackTrace.entries as SolidityStackTrace ); // Pass data and transaction hash from the original error (error as any).data = response.error.data?.data ?? undefined; @@ -527,18 +542,19 @@ export class EdrProviderWrapper this._providerConfig.genesisState = genesisState; this._providerConfig.ownedAccounts = ownedAccounts; + const currentNetworkConfig = this._providerConfig.network; + const currentlyForked = "url" in currentNetworkConfig; + if (forkConfig !== undefined) { - const cacheDir = - this._providerConfig.fork === undefined - ? this._originalCacheDir - : this._providerConfig.fork?.cacheDir; + const cacheDir = currentlyForked + ? currentNetworkConfig.cacheDir + : this._originalCacheDir; - const chainOverrides = - this._providerConfig.fork === undefined - ? this._originalChainOverrides - : this._providerConfig.fork?.chainOverrides; + const chainOverrides = currentlyForked + ? currentNetworkConfig.chainOverrides + : this._originalChainOverrides; - this._providerConfig.fork = { + this._providerConfig.network = { blockNumber: forkConfig.blockNumber !== undefined ? BigInt(forkConfig.blockNumber) @@ -549,7 +565,18 @@ export class EdrProviderWrapper url: forkConfig.jsonRpcUrl, }; } else { - this._providerConfig.fork = undefined; + const genesisBlockGasLimit = currentlyForked + ? this._originalGenesisBlockGasLimit + : currentNetworkConfig.genesisBlockGasLimit; + + const genesisBlockTime = currentlyForked + ? this._originalGenesisBlockTime + : currentNetworkConfig.genesisBlockTime; + + this._providerConfig.network = { + genesisBlockGasLimit, + genesisBlockTime, + }; } const context = await getGlobalEdrContext(); From 3476f1c9751566faae93a5bb37f080721a32c106 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:23:14 +0000 Subject: [PATCH 07/39] feat: record precompile calls in Hardhat 2's call traces Match the observability config of EDR's hardhat@2.28.6 patch, which also records calls to precompiles. --- .../src/internal/hardhat-network/provider/provider.ts | 1 + 1 file changed, 1 insertion(+) 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 5819d4ce124..9108fc80610 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -281,6 +281,7 @@ export class EdrProviderWrapper observability: { includeCallTraces: IncludeTraces.All, recordStack: StackSnapshotType.Top, + includePrecompileCalls: true, }, ownedAccounts, // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 From 19db76eae435edd47a50faf0b005aea37ce00d51 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:35:06 +0000 Subject: [PATCH 08/39] fix: hold the provider wrapper weakly in the subscription callback EDR holds the subscription callback through a threadsafe function. V8 cannot trace through it, so a strong reference to the wrapper roots the wrapper and its provider. The provider's OS thread is then never released. The callback now reaches the wrapper through a `WeakRef`, which replaces the `EdrProviderEventAdapter` indirection. Ported from EDR's Hardhat patch (NomicFoundation/edr#1720). --- .../hardhat-network/provider/provider.ts | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) 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 9108fc80610..508962cbfb2 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -134,8 +134,6 @@ interface HardhatNetworkProviderConfig { enableRip7212: boolean; } -class EdrProviderEventAdapter extends EventEmitter {} - type CallOverrideCallback = ( address: Buffer, data: Buffer @@ -229,9 +227,12 @@ export class EdrProviderWrapper genesisBlockTime, }; - // To accommodate construction ordering, we need an adapter to forward events - // from the EdrProvider callback to the wrapper's listener - const eventAdapter = new EdrProviderEventAdapter(); + // EDR holds `subscriptionCallback` through a threadsafe function, which V8 + // cannot see through. A strong reference to the wrapper from that callback + // would root the wrapper, and with it the provider whose OS thread is only + // released once the provider is finalized. + // eslint-disable-next-line prefer-const + let wrapperWeakRef: WeakRef | undefined; const printLineFn = loggerConfig.printLineFn ?? printLine; const replaceLastLineFn = loggerConfig.replaceLastLineFn ?? replaceLastLine; @@ -317,7 +318,7 @@ export class EdrProviderWrapper const edrSubscriptionConfig = { subscriptionCallback: (event: SubscriptionEvent) => { - eventAdapter.emit("ethEvent", event); + wrapperWeakRef?.deref()?._ethEventListener(event); }, }; @@ -351,11 +352,9 @@ export class EdrProviderWrapper genesisBlockTime ); - // Pass through all events from the provider - eventAdapter.addListener( - "ethEvent", - wrapper._ethEventListener.bind(wrapper) - ); + // Assigned after construction, which is why the callback above reaches the + // wrapper through a binding rather than capturing it. + wrapperWeakRef = new WeakRef(wrapper); return wrapper; } From fca6019b858017f9d690287859437f69a9a70d24 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:35:16 +0000 Subject: [PATCH 09/39] refactor: build the network config as EDR's Hardhat patch does Select the fork or local network config with an `if` statement instead of a ternary. The constructor comment now also lists the local-network genesis values that `hardhat_reset` restores. Ported from EDR's Hardhat patch (NomicFoundation/edr#1389). --- .../hardhat-network/provider/provider.ts | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) 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 508962cbfb2..32d39340c45 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -159,8 +159,9 @@ export class EdrProviderWrapper _vm: MinimalEthereumJsVm; }, private readonly _subscriptionConfig: SubscriptionConfig, - // Store the initial `genesisAccounts`, `cacheDir`, and `chainOverrides` for `hardhat_reset` - // calls, in case there is switching between local and fork configurations. + // Store the initial `genesisAccounts`, `cacheDir`, `chainOverrides`, and local-network + // genesis values for `hardhat_reset` calls, in case there is switching between local + // and fork configurations. private readonly _originalGenesisAccounts: GenesisAccount[], private readonly _originalCacheDir: string | undefined, private readonly _originalChainOverrides: ChainOverride[] | undefined, @@ -210,22 +211,24 @@ export class EdrProviderWrapper ? BigInt(Math.floor(config.initialDate.getTime() / 1000)) : undefined; - const network = - config.forkConfig !== undefined - ? { - blockNumber: - config.forkConfig.blockNumber !== undefined - ? BigInt(config.forkConfig.blockNumber) - : undefined, - cacheDir, - chainOverrides, - httpHeaders: httpHeadersToEdr(config.forkConfig.httpHeaders), - url: config.forkConfig.jsonRpcUrl, - } - : { - genesisBlockGasLimit, - genesisBlockTime, - }; + let network; + if (config.forkConfig !== undefined) { + network = { + blockNumber: + config.forkConfig.blockNumber !== undefined + ? BigInt(config.forkConfig.blockNumber) + : undefined, + cacheDir, + chainOverrides, + httpHeaders: httpHeadersToEdr(config.forkConfig.httpHeaders), + url: config.forkConfig.jsonRpcUrl, + }; + } else { + network = { + genesisBlockGasLimit, + genesisBlockTime, + }; + } // EDR holds `subscriptionCallback` through a threadsafe function, which V8 // cannot see through. A strong reference to the wrapper from that callback From ede6229ec6a46e321f379e30d6cb14deecc7165c Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:35:28 +0000 Subject: [PATCH 10/39] refactor: convert hardforks through EDR's string names EDR's hardfork names now match Hardhat's. Both conversions therefore pass the name through, using `l1HardforkToString` for an `L1Hardfork`. This replaces the switch statements over the `SpecId` enum and the per-hardfork string constants. Ported from EDR's Hardhat patch (NomicFoundation/edr#1645). --- .../provider/utils/convertToEdr.ts | 120 ++---------------- 1 file changed, 8 insertions(+), 112 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index c6be433f86f..a7759820874 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -1,5 +1,5 @@ import type { - SpecId, + L1Hardfork, MineOrdering, IntervalRange, DebugTraceResult, @@ -8,27 +8,6 @@ import type { TracingStep, HttpHeader, } from "@nomicfoundation/edr"; -import { - FRONTIER, - HOMESTEAD, - DAO_FORK, - TANGERINE, - SPURIOUS_DRAGON, - BYZANTIUM, - CONSTANTINOPLE, - PETERSBURG, - ISTANBUL, - MUIR_GLACIER, - BERLIN, - LONDON, - ARROW_GLACIER, - GRAY_GLACIER, - MERGE, - SHANGHAI, - CANCUN, - PRAGUE, - OSAKA, -} from "@nomicfoundation/edr"; import { Address } from "@ethereumjs/util"; import { requireNapiRsModule } from "../../../../common/napi-rs"; @@ -44,101 +23,18 @@ import { /* eslint-disable @nomicfoundation/hardhat-internal-rules/only-hardhat-error */ export function ethereumsjsHardforkToEdrSpecId(hardfork: HardforkName): string { - switch (hardfork) { - case HardforkName.FRONTIER: - return FRONTIER; - case HardforkName.HOMESTEAD: - return HOMESTEAD; - case HardforkName.DAO: - return DAO_FORK; - case HardforkName.TANGERINE_WHISTLE: - return TANGERINE; - case HardforkName.SPURIOUS_DRAGON: - return SPURIOUS_DRAGON; - case HardforkName.BYZANTIUM: - return BYZANTIUM; - case HardforkName.CONSTANTINOPLE: - return CONSTANTINOPLE; - case HardforkName.PETERSBURG: - return PETERSBURG; - case HardforkName.ISTANBUL: - return ISTANBUL; - case HardforkName.MUIR_GLACIER: - return MUIR_GLACIER; - case HardforkName.BERLIN: - return BERLIN; - case HardforkName.LONDON: - return LONDON; - case HardforkName.ARROW_GLACIER: - return ARROW_GLACIER; - case HardforkName.GRAY_GLACIER: - return GRAY_GLACIER; - case HardforkName.MERGE: - return MERGE; - case HardforkName.SHANGHAI: - return SHANGHAI; - case HardforkName.CANCUN: - return CANCUN; - case HardforkName.PRAGUE: - return PRAGUE; - case HardforkName.OSAKA: - return OSAKA; - default: - const _exhaustiveCheck: never = hardfork; - throw new Error( - `Unknown hardfork name '${hardfork as string}', this shouldn't happen` - ); - } + // EDR's hardfork names match Hardhat's, so no conversion is needed. Names + // EDR does not support (e.g. pre-Byzantium) are rejected by EDR itself. + return hardfork; } -export function edrSpecIdToEthereumHardfork(specId: SpecId): HardforkName { - const { SpecId } = requireNapiRsModule( +export function edrSpecIdToEthereumHardfork(specId: L1Hardfork): HardforkName { + const { l1HardforkToString } = requireNapiRsModule( "@nomicfoundation/edr" ) as typeof import("@nomicfoundation/edr"); - switch (specId) { - case SpecId.Frontier: - return HardforkName.FRONTIER; - case SpecId.Homestead: - return HardforkName.HOMESTEAD; - case SpecId.DaoFork: - return HardforkName.DAO; - case SpecId.Tangerine: - return HardforkName.TANGERINE_WHISTLE; - case SpecId.SpuriousDragon: - return HardforkName.SPURIOUS_DRAGON; - case SpecId.Byzantium: - return HardforkName.BYZANTIUM; - case SpecId.Constantinople: - return HardforkName.CONSTANTINOPLE; - case SpecId.Petersburg: - return HardforkName.PETERSBURG; - case SpecId.Istanbul: - return HardforkName.ISTANBUL; - case SpecId.MuirGlacier: - return HardforkName.MUIR_GLACIER; - case SpecId.Berlin: - return HardforkName.BERLIN; - case SpecId.London: - return HardforkName.LONDON; - case SpecId.ArrowGlacier: - return HardforkName.ARROW_GLACIER; - case SpecId.GrayGlacier: - return HardforkName.GRAY_GLACIER; - case SpecId.Merge: - return HardforkName.MERGE; - case SpecId.Shanghai: - return HardforkName.SHANGHAI; - case SpecId.Cancun: - return HardforkName.CANCUN; - case SpecId.Prague: - return HardforkName.PRAGUE; - case SpecId.Osaka: - return HardforkName.OSAKA; - - default: - throw new Error(`Unknown spec id '${specId}', this shouldn't happen`); - } + // EDR's hardfork names match Hardhat's, so no conversion is needed. + return l1HardforkToString(specId) as HardforkName; } export function ethereumjsIntervalMiningConfigToEdr( From f1d2d9a45f9ca2d2f9bd4963a78d0b42cc4483b1 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:35:32 +0000 Subject: [PATCH 11/39] chore: remove unused imports from convertToEdr --- .../src/internal/hardhat-network/provider/utils/convertToEdr.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index a7759820874..005c8526246 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -2,7 +2,6 @@ import type { L1Hardfork, MineOrdering, IntervalRange, - DebugTraceResult, TracingMessage, TracingMessageResult, TracingStep, @@ -13,7 +12,6 @@ import { Address } from "@ethereumjs/util"; import { requireNapiRsModule } from "../../../../common/napi-rs"; import { HardforkName } from "../../../util/hardforks"; import { IntervalMiningConfig, MempoolOrder } from "../node-types"; -import { RpcDebugTraceOutput, RpcStructLog } from "../output"; import { MinimalEVMResult, MinimalInterpreterStep, From e454f5d20c891b671c2a15f5bf68bf798dc9fece Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 5 Oct 2026 18:43:00 +0000 Subject: [PATCH 12/39] Revert "feat: record precompile calls in Hardhat 2's call traces" EDR now records calls to precompiles unconditionally, so the includePrecompileCalls option no longer exists. --- .../src/internal/hardhat-network/provider/provider.ts | 1 - 1 file changed, 1 deletion(-) 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 32d39340c45..66e540abec0 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -285,7 +285,6 @@ export class EdrProviderWrapper observability: { includeCallTraces: IncludeTraces.All, recordStack: StackSnapshotType.Top, - includePrecompileCalls: true, }, ownedAccounts, // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 From c9bde95f940196a9e5e89d37b64c21c37cf7f9c4 Mon Sep 17 00:00:00 2001 From: Wodann Date: Tue, 6 Oct 2026 14:15:25 +0000 Subject: [PATCH 13/39] fix: cap the default transaction gas limit under Osaka --- .changeset/default-gas-limit-osaka-cap.md | 5 ++ .../hardhat-network/provider/provider.ts | 47 ++++++++++++++----- 2 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 .changeset/default-gas-limit-osaka-cap.md diff --git a/.changeset/default-gas-limit-osaka-cap.md b/.changeset/default-gas-limit-osaka-cap.md new file mode 100644 index 00000000000..0574728a32f --- /dev/null +++ b/.changeset/default-gas-limit-osaka-cap.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +`eth_call` and `eth_estimateGas` requests without an explicit `gas` field no longer fail under the Osaka transaction gas cap. 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 66e540abec0..caf5150c87f 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -35,6 +35,7 @@ import * as t from "io-ts"; import { requireNapiRsModule } from "../../../common/napi-rs"; import { + FUSAKA_TRANSACTION_GAS_LIMIT, HARDHAT_NETWORK_RESET_EVENT, HARDHAT_NETWORK_REVERT_SNAPSHOT_EVENT, } from "../../constants"; @@ -255,6 +256,18 @@ export class EdrProviderWrapper : [precompileP256Verify()] : []; + // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 + // when being run from `solidity-coverage`. + // We detect the magic number that `solidity-coverage` sets the block + // gas limit to, see https://github.com/sc-forks/solidity-coverage/blob/8e52fd7eae73803edf50c5af2faeeca8e5a57e27/lib/api.js#L55 + // We turn it off the transaction gas limit by setting it + // to a large number (the same number `solidity-coverage` uses for + // setting gas). + const transactionGasCap = + config.blockGasLimit === 0x1fffffffffffff + ? BigInt(0xfffffffffffff) + : undefined; + const edrProviderConfig = { allowBlocksWithSameTimestamp: config.allowBlocksWithSameTimestamp ?? false, @@ -263,7 +276,11 @@ export class EdrProviderWrapper bailOnTransactionFailure: config.throwOnTransactionFailures, chainId: BigInt(config.chainId), coinbase: Buffer.from(coinbase.slice(2), "hex"), - defaultTransactionGasLimit: BigInt(config.blockGasLimit), + defaultTransactionGasLimit: _resolveDefaultTransactionGasLimit( + hardforkName, + config.blockGasLimit, + transactionGasCap + ), precompileOverrides, genesisState, hardfork: edrHardfork, @@ -287,17 +304,7 @@ export class EdrProviderWrapper recordStack: StackSnapshotType.Top, }, ownedAccounts, - // Turn off the Osaka EIP-7825 per transaction gas limit for HH2 - // when being run from `solidity-coverage`. - // We detect the magic number that `solidity-coverage` sets the block - // gas limit to, see https://github.com/sc-forks/solidity-coverage/blob/8e52fd7eae73803edf50c5af2faeeca8e5a57e27/lib/api.js#L55 - // We turn it off the transaction gas limit by setting it - // to a large number (the same number `solidity-coverage` uses for - // setting gas). - transactionGasCap: - config.blockGasLimit === 0x1fffffffffffff - ? BigInt(0xfffffffffffff) - : undefined, + transactionGasCap, }; const edrLoggerConfig = { @@ -710,6 +717,22 @@ function _resetParams(params: any[]): [RpcHardhatNetworkConfig | undefined] { return validateParams(params, optionalRpcHardhatNetworkConfig); } +function _resolveDefaultTransactionGasLimit( + hardfork: HardforkName, + blockGasLimit: number, + transactionGasCap: bigint | undefined +): bigint { + if (transactionGasCap !== undefined) { + return transactionGasCap; + } + + if (hardforkGte(hardfork, HardforkName.OSAKA)) { + return BigInt(Math.min(FUSAKA_TRANSACTION_GAS_LIMIT, blockGasLimit)); + } + + return BigInt(blockGasLimit); +} + function _genesisStateAndOwnedAccounts( isForked: boolean, hardfork: string, From 58316dda8217b79f44320fc7b6af20cd5c8db233 Mon Sep 17 00:00:00 2001 From: Wodann Date: Sun, 18 Oct 2026 03:50:21 +0000 Subject: [PATCH 14/39] fix: let EDR derive the default transaction gas limit The provider no longer passes `defaultTransactionGasLimit`. EDR derives the same value per block when the field is absent. On forks it also uses the executing block's hardfork. `transactionGasCap` stays, so solidity-coverage keeps lifting the EIP-7825 transaction gas limit. --- .../hardhat-network/provider/provider.ts | 22 ------------------- 1 file changed, 22 deletions(-) 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 caf5150c87f..5aabe7a9ee4 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -35,7 +35,6 @@ import * as t from "io-ts"; import { requireNapiRsModule } from "../../../common/napi-rs"; import { - FUSAKA_TRANSACTION_GAS_LIMIT, HARDHAT_NETWORK_RESET_EVENT, HARDHAT_NETWORK_REVERT_SNAPSHOT_EVENT, } from "../../constants"; @@ -276,11 +275,6 @@ export class EdrProviderWrapper bailOnTransactionFailure: config.throwOnTransactionFailures, chainId: BigInt(config.chainId), coinbase: Buffer.from(coinbase.slice(2), "hex"), - defaultTransactionGasLimit: _resolveDefaultTransactionGasLimit( - hardforkName, - config.blockGasLimit, - transactionGasCap - ), precompileOverrides, genesisState, hardfork: edrHardfork, @@ -717,22 +711,6 @@ function _resetParams(params: any[]): [RpcHardhatNetworkConfig | undefined] { return validateParams(params, optionalRpcHardhatNetworkConfig); } -function _resolveDefaultTransactionGasLimit( - hardfork: HardforkName, - blockGasLimit: number, - transactionGasCap: bigint | undefined -): bigint { - if (transactionGasCap !== undefined) { - return transactionGasCap; - } - - if (hardforkGte(hardfork, HardforkName.OSAKA)) { - return BigInt(Math.min(FUSAKA_TRANSACTION_GAS_LIMIT, blockGasLimit)); - } - - return BigInt(blockGasLimit); -} - function _genesisStateAndOwnedAccounts( isForked: boolean, hardfork: string, From ef544c3ad25d025ab670472c69426cce0ca7f08c Mon Sep 17 00:00:00 2001 From: Wodann Date: Sun, 18 Oct 2026 06:58:58 +0000 Subject: [PATCH 15/39] docs: say that EDR derives the default transaction gas limit The changeset described the fix as Hardhat's. Since the provider no longer passes the field, EDR derives the value per block, so the changeset now says so. --- .changeset/default-gas-limit-osaka-cap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/default-gas-limit-osaka-cap.md b/.changeset/default-gas-limit-osaka-cap.md index 0574728a32f..2b770ebc11f 100644 --- a/.changeset/default-gas-limit-osaka-cap.md +++ b/.changeset/default-gas-limit-osaka-cap.md @@ -2,4 +2,4 @@ "hardhat": patch --- -`eth_call` and `eth_estimateGas` requests without an explicit `gas` field no longer fail under the Osaka transaction gas cap. +Fixed `eth_call` and `eth_estimateGas` requests without a `gas` field failing under the Osaka transaction gas cap. Hardhat no longer passes a default transaction gas limit to EDR. EDR derives it from the hardfork and gas limit of the block that runs the request. From a34ae727dad45717b782fbc56314398a24a41b14 Mon Sep 17 00:00:00 2001 From: Wodann Date: Sun, 18 Oct 2026 07:24:12 +0000 Subject: [PATCH 16/39] refactor: drop the identity hardfork conversion EDR's hardfork names match Hardhat's, so the provider passes the hardfork name to EDR directly. --- .../src/internal/hardhat-network/provider/provider.ts | 10 +++------- .../hardhat-network/provider/utils/convertToEdr.ts | 6 ------ 2 files changed, 3 insertions(+), 13 deletions(-) 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 5aabe7a9ee4..321e1667426 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -77,7 +77,6 @@ import { edrTracingStepToMinimalInterpreterStep, ethereumjsIntervalMiningConfigToEdr, ethereumjsMempoolOrderToEdrMineOrdering, - ethereumsjsHardforkToEdrSpecId, httpHeadersToEdr, } from "./utils/convertToEdr"; import { LoggerConfig, printLine, replaceLastLine } from "./modules/logger"; @@ -193,9 +192,7 @@ export class EdrProviderWrapper ([hardfork, blockNumber]) => { return { condition: { blockNumber: BigInt(blockNumber) }, - hardfork: ethereumsjsHardforkToEdrSpecId( - getHardforkName(hardfork) - ), + hardfork: getHardforkName(hardfork), }; } ), @@ -241,11 +238,10 @@ export class EdrProviderWrapper const replaceLastLineFn = loggerConfig.replaceLastLineFn ?? replaceLastLine; const hardforkName = getHardforkName(config.hardfork); - const edrHardfork = ethereumsjsHardforkToEdrSpecId(hardforkName); const [genesisState, ownedAccounts] = _genesisStateAndOwnedAccounts( config.forkConfig !== undefined, - edrHardfork, + hardforkName, config.genesisAccounts ); @@ -277,7 +273,7 @@ export class EdrProviderWrapper coinbase: Buffer.from(coinbase.slice(2), "hex"), precompileOverrides, genesisState, - hardfork: edrHardfork, + hardfork: hardforkName, initialBaseFeePerGas: config.initialBaseFeePerGas !== undefined ? BigInt(config.initialBaseFeePerGas!) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index 005c8526246..1a4adc90eae 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -20,12 +20,6 @@ import { /* eslint-disable @nomicfoundation/hardhat-internal-rules/only-hardhat-error */ -export function ethereumsjsHardforkToEdrSpecId(hardfork: HardforkName): string { - // EDR's hardfork names match Hardhat's, so no conversion is needed. Names - // EDR does not support (e.g. pre-Byzantium) are rejected by EDR itself. - return hardfork; -} - export function edrSpecIdToEthereumHardfork(specId: L1Hardfork): HardforkName { const { l1HardforkToString } = requireNapiRsModule( "@nomicfoundation/edr" From 47c921c61f0d46989b9faaae843b0ebacdde13bc Mon Sep 17 00:00:00 2001 From: Wodann Date: Sun, 18 Oct 2026 07:28:34 +0000 Subject: [PATCH 17/39] docs: port the EDR upgrade changesets from Hardhat 3 Port the Hardhat 3 changesets that Hardhat 2 users see, from the EDR upgrades between v0.12.0-next.24 and v0.23.0. Hardhat 2.29 ships v0.12.0-next.23. The ported changes come from v0.12.0-next.25 (geth-style debug traces), v0.12.0-next.34 (interval mining deadlock), v0.16.0 (platform-specific install) and v0.23.0 (stack trace and node log fixes). The per-version "Bumped EDR" changesets become one upgrade changeset. --- .changeset/console-log-stack-traces.md | 5 +++++ .changeset/debug-trace-geth-format.md | 7 +++++++ .changeset/edr-install-size.md | 5 +++++ .changeset/edr-upgrade.md | 5 +++++ .changeset/interval-mining-logging-deadlock.md | 5 +++++ .changeset/node-log-value-formatting.md | 5 +++++ .changeset/precompile-stack-traces.md | 5 +++++ 7 files changed, 37 insertions(+) create mode 100644 .changeset/console-log-stack-traces.md create mode 100644 .changeset/debug-trace-geth-format.md create mode 100644 .changeset/edr-install-size.md create mode 100644 .changeset/edr-upgrade.md create mode 100644 .changeset/interval-mining-logging-deadlock.md create mode 100644 .changeset/node-log-value-formatting.md create mode 100644 .changeset/precompile-stack-traces.md diff --git a/.changeset/console-log-stack-traces.md b/.changeset/console-log-stack-traces.md new file mode 100644 index 00000000000..f778e306f14 --- /dev/null +++ b/.changeset/console-log-stack-traces.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed Solidity stack traces not recognising `console.log` calls made through the Hardhat console address. diff --git a/.changeset/debug-trace-geth-format.md b/.changeset/debug-trace-geth-format.md new file mode 100644 index 00000000000..56dcf5f5836 --- /dev/null +++ b/.changeset/debug-trace-geth-format.md @@ -0,0 +1,7 @@ +--- +"hardhat": minor +--- + +Changed `debug_traceTransaction` and `debug_traceCall` to follow geth. They accept geth's built-in tracers, such as `callTracer` and `prestateTracer`. Stack items are `0x`-prefixed and unpadded, and storage only appears on steps that access storage. + +BREAKING CHANGE: Memory capture is now disabled by default, as in geth. Set the `enableMemory` tracer option to `true` to capture memory. diff --git a/.changeset/edr-install-size.md b/.changeset/edr-install-size.md new file mode 100644 index 00000000000..94a5338944a --- /dev/null +++ b/.changeset/edr-install-size.md @@ -0,0 +1,5 @@ +--- +"hardhat": minor +--- + +Reduced Hardhat's install size because EDR now installs only the native build for the current platform through `optionalDependencies`. diff --git a/.changeset/edr-upgrade.md b/.changeset/edr-upgrade.md new file mode 100644 index 00000000000..6178c39aa69 --- /dev/null +++ b/.changeset/edr-upgrade.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Upgraded EDR to v0.23.0. diff --git a/.changeset/interval-mining-logging-deadlock.md b/.changeset/interval-mining-logging-deadlock.md new file mode 100644 index 00000000000..b10c2055830 --- /dev/null +++ b/.changeset/interval-mining-logging-deadlock.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed a deadlock that hung the process when a Hardhat Network provider with interval mining and logging enabled was destroyed. diff --git a/.changeset/node-log-value-formatting.md b/.changeset/node-log-value-formatting.md new file mode 100644 index 00000000000..1261280a80e --- /dev/null +++ b/.changeset/node-log-value-formatting.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed the transaction `Value` in the `hardhat node` logs dropping leading zeros of the fractional part, which logged `0.01 ETH` as `0.1 ETH`. Whole amounts no longer end with a trailing dot. diff --git a/.changeset/precompile-stack-traces.md b/.changeset/precompile-stack-traces.md new file mode 100644 index 00000000000..728bbcf2c6a --- /dev/null +++ b/.changeset/precompile-stack-traces.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed Solidity stack traces after a precompile call. A failing precompile call is now reported as a precompile error, and later calls in the same function point at the right line. From ac31481e91ed0c2d5241fbd239a8771c93c9424d Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 19 Oct 2026 15:52:13 +0000 Subject: [PATCH 18/39] docs: drop the EDR version bump changeset The changeset carried no user-facing information. --- .changeset/edr-upgrade.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/edr-upgrade.md diff --git a/.changeset/edr-upgrade.md b/.changeset/edr-upgrade.md deleted file mode 100644 index 6178c39aa69..00000000000 --- a/.changeset/edr-upgrade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Upgraded EDR to v0.23.0. From 9203c7dbfaa5db69d7f5a5a1f005ab96d1dff1f5 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 19 Oct 2026 15:53:04 +0000 Subject: [PATCH 19/39] build: require Node.js 22 or later EDR 0.14.0 and later declare `engines.node >= 22`, so Hardhat can no longer run on Node.js 20. Drop v20 from the supported versions, warn on it, and move the dev container, `.nvmrc` and the `@types/node` peer dependency of new TypeScript projects to v22. --- .changeset/require-node-22.md | 5 +++++ .devcontainer/devcontainer.json | 2 +- .nvmrc | 2 +- packages/hardhat-core/src/internal/cli/constants.ts | 2 +- packages/hardhat-core/src/internal/cli/project-creation.ts | 2 +- .../test/internal/cli/is-node-version-to-warn-on.ts | 6 +++--- 6 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/require-node-22.md diff --git a/.changeset/require-node-22.md b/.changeset/require-node-22.md new file mode 100644 index 00000000000..f1de420bc2c --- /dev/null +++ b/.changeset/require-node-22.md @@ -0,0 +1,5 @@ +--- +"hardhat": minor +--- + +Updated the minimal supported version of Node to v22, because EDR requires Node.js v22 or later. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fd50e4acb9a..328746a761b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ "image": "mcr.microsoft.com/devcontainers/base:bullseye", "features": { "ghcr.io/devcontainers/features/node:1": { - "version": "20" + "version": "22" } }, "postCreateCommand": "scripts/setup.sh", diff --git a/.nvmrc b/.nvmrc index 209e3ef4b62..2bd5a0a98a3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/packages/hardhat-core/src/internal/cli/constants.ts b/packages/hardhat-core/src/internal/cli/constants.ts index 18627391282..a5e554dcd4b 100644 --- a/packages/hardhat-core/src/internal/cli/constants.ts +++ b/packages/hardhat-core/src/internal/cli/constants.ts @@ -1 +1 @@ -export const SUPPORTED_NODE_VERSIONS = ["^20.0.0", "^22.0.0", "^24.0.0"]; +export const SUPPORTED_NODE_VERSIONS = ["^22.0.0", "^24.0.0"]; diff --git a/packages/hardhat-core/src/internal/cli/project-creation.ts b/packages/hardhat-core/src/internal/cli/project-creation.ts index 480f0185d61..25d0f6147f7 100644 --- a/packages/hardhat-core/src/internal/cli/project-creation.ts +++ b/packages/hardhat-core/src/internal/cli/project-creation.ts @@ -83,7 +83,7 @@ const TYPESCRIPT_DEPENDENCIES: Dependencies = { const TYPESCRIPT_PEER_DEPENDENCIES: Dependencies = { "@types/chai": "^4.2.0", "@types/mocha": ">=9.1.0", - "@types/node": ">=20.0.0", + "@types/node": ">=22.0.0", "ts-node": ">=8.0.0", }; diff --git a/packages/hardhat-core/test/internal/cli/is-node-version-to-warn-on.ts b/packages/hardhat-core/test/internal/cli/is-node-version-to-warn-on.ts index 70a0b9e8b67..06be0f6c805 100644 --- a/packages/hardhat-core/test/internal/cli/is-node-version-to-warn-on.ts +++ b/packages/hardhat-core/test/internal/cli/is-node-version-to-warn-on.ts @@ -3,9 +3,6 @@ import { isNodeVersionToWarnOn } from "../../../src/internal/cli/is-node-version describe("isNodeVersionToWarnOn", function () { it("Should not warn on supported versions", function () { - assert.isFalse(isNodeVersionToWarnOn("v20.0.0")); - assert.isFalse(isNodeVersionToWarnOn("v20.14.0")); - assert.isFalse(isNodeVersionToWarnOn("v22.0.0")); assert.isFalse(isNodeVersionToWarnOn("v22.3.0")); @@ -39,6 +36,9 @@ describe("isNodeVersionToWarnOn", function () { assert(isNodeVersionToWarnOn("v18.0.0")); assert(isNodeVersionToWarnOn("v18.20.3")); + + assert(isNodeVersionToWarnOn("v20.0.0")); + assert(isNodeVersionToWarnOn("v20.14.0")); }); it("Should warn on odd number releases", function () { From e5cd8c5870cb6246f6256e5e13e457447add6790 Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 19 Oct 2026 15:53:58 +0000 Subject: [PATCH 20/39] docs: add changesets for EDR behaviour changes since 0.12.0-next.23 These EDR changes are visible to Hardhat 2 users but had no changeset to port from Hardhat 3. Describe each one for users upgrading from EDR 0.12.0-next.23. --- .changeset/edr-glibc-2-34.md | 5 +++++ .changeset/estimate-gas-osaka-cap.md | 5 +++++ .changeset/fork-loopback-proxy-bypass.md | 5 +++++ .changeset/fork-oldest-hardfork-error.md | 5 +++++ .changeset/fork-rpc-cache-v2.md | 5 +++++ .changeset/genesis-system-account-nonce.md | 5 +++++ .changeset/interval-mining-range-validation.md | 7 +++++++ .changeset/log-block-timestamp.md | 5 +++++ .changeset/proxy-call-logging.md | 5 +++++ 9 files changed, 47 insertions(+) create mode 100644 .changeset/edr-glibc-2-34.md create mode 100644 .changeset/estimate-gas-osaka-cap.md create mode 100644 .changeset/fork-loopback-proxy-bypass.md create mode 100644 .changeset/fork-oldest-hardfork-error.md create mode 100644 .changeset/fork-rpc-cache-v2.md create mode 100644 .changeset/genesis-system-account-nonce.md create mode 100644 .changeset/interval-mining-range-validation.md create mode 100644 .changeset/log-block-timestamp.md create mode 100644 .changeset/proxy-call-logging.md diff --git a/.changeset/edr-glibc-2-34.md b/.changeset/edr-glibc-2-34.md new file mode 100644 index 00000000000..ceca78eb2b0 --- /dev/null +++ b/.changeset/edr-glibc-2-34.md @@ -0,0 +1,5 @@ +--- +"hardhat": minor +--- + +Raised the minimum glibc version of the prebuilt Linux gnu binaries of EDR from 2.30 to 2.34. diff --git a/.changeset/estimate-gas-osaka-cap.md b/.changeset/estimate-gas-osaka-cap.md new file mode 100644 index 00000000000..e1752d469c1 --- /dev/null +++ b/.changeset/estimate-gas-osaka-cap.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed `eth_estimateGas` failing from the Osaka hardfork when its search probed gas values above the EIP-7825 transaction gas cap. diff --git a/.changeset/fork-loopback-proxy-bypass.md b/.changeset/fork-loopback-proxy-bypass.md new file mode 100644 index 00000000000..ab18fae9c70 --- /dev/null +++ b/.changeset/fork-loopback-proxy-bypass.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed forking requests to loopback URLs being sent through `HTTP_PROXY` or `HTTPS_PROXY`. Requests to `localhost`, `*.localhost`, `127.0.0.0/8`, `0.0.0.0` and `::1` now bypass the proxy. diff --git a/.changeset/fork-oldest-hardfork-error.md b/.changeset/fork-oldest-hardfork-error.md new file mode 100644 index 00000000000..1db5a83831f --- /dev/null +++ b/.changeset/fork-oldest-hardfork-error.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed forking from a block that precedes the oldest supported hardfork being silently accepted. It now fails with an error that names the oldest supported hardfork. diff --git a/.changeset/fork-rpc-cache-v2.md b/.changeset/fork-rpc-cache-v2.md new file mode 100644 index 00000000000..b7e9b9ce9f5 --- /dev/null +++ b/.changeset/fork-rpc-cache-v2.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Changed the location of the forking RPC cache to an `rpc_cache/v2` subdirectory. Data cached by previous Hardhat versions is not reused. Everything else in the `rpc_cache` directory is ignored and can be deleted. diff --git a/.changeset/genesis-system-account-nonce.md b/.changeset/genesis-system-account-nonce.md new file mode 100644 index 00000000000..210c7acc448 --- /dev/null +++ b/.changeset/genesis-system-account-nonce.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed the EIP-4788 and EIP-2935 system accounts to have nonce `1` in the genesis state, matching their on-chain deployments. The genesis block hash of local Cancun or later networks therefore differs from previous Hardhat versions. The hashes of all later blocks change as well. diff --git a/.changeset/interval-mining-range-validation.md b/.changeset/interval-mining-range-validation.md new file mode 100644 index 00000000000..7a6fe8eed77 --- /dev/null +++ b/.changeset/interval-mining-range-validation.md @@ -0,0 +1,7 @@ +--- +"hardhat": minor +--- + +Fixed interval mining accepting a `mining.interval` range that it could not honour. A range must now satisfy `1 <= min <= max`. An invalid range is rejected when the provider is created and when `evm_setIntervalMining` is called. + +BREAKING CHANGE: `[0, 0]` and `[0, N]` ranges are no longer accepted. Use a range with a minimum of at least `1`, such as `[1, N]`. Set `mining.interval` to `0` to disable interval mining. diff --git a/.changeset/log-block-timestamp.md b/.changeset/log-block-timestamp.md new file mode 100644 index 00000000000..520a954c640 --- /dev/null +++ b/.changeset/log-block-timestamp.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Added the `blockTimestamp` field to logs. Logs returned by `eth_getLogs`, `eth_getFilterLogs`, `eth_getFilterChanges` and `eth_subscribe("logs")` carry it, as do the logs in transaction receipts. When forking, the field is passed through from the remote node and is absent if the node does not serve it. diff --git a/.changeset/proxy-call-logging.md b/.changeset/proxy-call-logging.md new file mode 100644 index 00000000000..7e1bd87b596 --- /dev/null +++ b/.changeset/proxy-call-logging.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed calls through proxy contracts being logged as ``. A selector that is missing from the called contract is now resolved against the implementation behind the proxy. The call is labeled with the full delegation chain, such as `Proxy>Implementation#setValue`. From 97e66a0c0d0640bd8fedb4059be0facdfc8ac39d Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 19 Oct 2026 16:47:05 +0000 Subject: [PATCH 21/39] docs: describe the full debug trace format change The removed `edrRpcDebugTraceToHardhat` also stripped `0x` from storage keys and values and turned an empty return value into `""`, so the changeset names those changes too. --- .changeset/debug-trace-geth-format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/debug-trace-geth-format.md b/.changeset/debug-trace-geth-format.md index 56dcf5f5836..251cfadad41 100644 --- a/.changeset/debug-trace-geth-format.md +++ b/.changeset/debug-trace-geth-format.md @@ -2,6 +2,6 @@ "hardhat": minor --- -Changed `debug_traceTransaction` and `debug_traceCall` to follow geth. They accept geth's built-in tracers, such as `callTracer` and `prestateTracer`. Stack items are `0x`-prefixed and unpadded, and storage only appears on steps that access storage. +Changed `debug_traceTransaction` and `debug_traceCall` to return geth's format unchanged. They accept geth's built-in tracers, such as `callTracer` and `prestateTracer`. Stack items, storage keys and storage values are `0x`-prefixed and unpadded. Storage only appears on steps that access storage. The `returnValue` is a `0x`-prefixed hex string, which is `0x` when empty. BREAKING CHANGE: Memory capture is now disabled by default, as in geth. Set the `enableMemory` tracer option to `true` to capture memory. From 1aa7122cb04c05797da6356243b39645230bcc56 Mon Sep 17 00:00:00 2001 From: Wodann Date: Wed, 21 Oct 2026 14:21:30 +0000 Subject: [PATCH 22/39] build: move the dev container to Debian Bookworm EDR's prebuilt Linux gnu binaries need glibc 2.34 since EDR 0.21.0. Bullseye ships glibc 2.31, so the native module could not load in the container once the dependency moves. Bookworm ships glibc 2.36. --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 328746a761b..0f0c6bcc8af 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Hardhat", - "image": "mcr.microsoft.com/devcontainers/base:bullseye", + "image": "mcr.microsoft.com/devcontainers/base:bookworm", "features": { "ghcr.io/devcontainers/features/node:1": { "version": "22" From 37884318ef806e8d22833290ce3069442d6d24dd Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 22 Oct 2026 18:19:05 +0000 Subject: [PATCH 23/39] fix: capture memory in debug traces by default Hardhat 2 captured memory in `debug_traceTransaction` and `debug_traceCall` unless `disableMemory` was set. EDR follows geth and captures memory only if `enableMemory` is set. EDR also ignores `disableMemory: false`. When the default tracer runs without `enableMemory`, the provider now sets it to the opposite of `disableMemory`. An explicit `enableMemory` is passed through unchanged. Empty params are passed through too, so a missing transaction hash still reports a missing parameter. --- .../hardhat-network/provider/provider.ts | 58 ++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) 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 321e1667426..87521e05679 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -387,7 +387,9 @@ export class EdrProviderWrapper const stringifiedArgs = JSON.stringify({ method: args.method, - params, + params: isDebugTraceMethod(args.method) + ? withHardhat2MemoryDefault(args.method, params) + : params, }); const responseObject: Response = @@ -644,6 +646,60 @@ export class EdrProviderWrapper } } +type DebugTraceMethod = "debug_traceTransaction" | "debug_traceCall"; + +const DEBUG_TRACE_OPTIONS_INDEX: Record = { + debug_traceTransaction: 1, + debug_traceCall: 2, +}; + +function isDebugTraceMethod(method: string): method is DebugTraceMethod { + return method === "debug_traceTransaction" || method === "debug_traceCall"; +} + +function debugTraceOptions(method: DebugTraceMethod, params: any[]): any { + return params[DEBUG_TRACE_OPTIONS_INDEX[method]]; +} + +function usesDefaultTracer(options: any): boolean { + return ( + options === undefined || + options === null || + (typeof options === "object" && + (options.tracer === undefined || options.tracer === null)) + ); +} + +/** + * Sets `enableMemory` from `disableMemory` unless the options set it. EDR + * captures memory only if `enableMemory` is set and ignores `disableMemory`. + */ +function withHardhat2MemoryDefault( + method: DebugTraceMethod, + params: any[] +): any[] { + const options = debugTraceOptions(method, params); + if ( + params.length === 0 || + !usesDefaultTracer(options) || + options?.enableMemory !== undefined + ) { + return params; + } + + const optionsIndex = DEBUG_TRACE_OPTIONS_INDEX[method]; + const paramsWithOptions = [...params]; + while (paramsWithOptions.length < optionsIndex) { + paramsWithOptions.push(null); + } + paramsWithOptions[optionsIndex] = { + ...options, + enableMemory: options?.disableMemory !== true, + }; + + return paramsWithOptions; +} + async function clientVersion(edrClientVersion: string): Promise { const hardhatPackage = await getPackageJson(); const edrVersion = edrClientVersion.split("/")[1]; From c15ce75372f9bfb02060e7e8249929bca04c0d1e Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 22 Oct 2026 18:19:05 +0000 Subject: [PATCH 24/39] fix: return Hardhat 2's debug trace format EDR now returns geth's format for `debug_traceTransaction` and `debug_traceCall`. Hardhat 2 users parsed the old format, which broke Safe's `SafeToL2Setup` test. Built-in tracers keep geth's output. `edrRpcDebugTraceToHardhat2` converts the default tracer's output back. It strips `0x`, zero-pads stack items and wraps step errors in `{ message }`. It also turns an empty return value into `""` and drops `refund`. EDR reports storage only on `SLOAD` and `SSTORE` steps. The conversion repeats each contract's latest storage on every step, as Hardhat 2 did. It follows each call frame's storage context through the call targets on the stack. The root context is the transaction's `to`, which `debug_traceTransaction` fetches with `eth_getTransactionByHash`. Without the stack, storage values can be stale until the next `SLOAD` or `SSTORE`. The tests compare against traces recorded with Hardhat 2.29.1 and EDR 0.12.0-next.23. --- .../hardhat-network/provider/output.ts | 1 + .../hardhat-network/provider/provider.ts | 48 + .../provider/utils/convertToEdr.ts | 233 + .../hardhat-network/provider/debug-trace.ts | 540 ++ .../fixture-debug-traces/hardhat-2.29.1.json | 6048 +++++++++++++++++ 5 files changed, 6870 insertions(+) create mode 100644 packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts create mode 100644 packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/output.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/output.ts index 54d624eaa12..55532b13bd4 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/output.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/output.ts @@ -137,6 +137,7 @@ export interface RpcStructLog { storage?: Record; memSize?: number; error?: object; + returnData?: string; } export interface RpcDebugTraceOutput { 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 87521e05679..d2a18d42563 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -72,6 +72,7 @@ import { MempoolOrder, } from "./node-types"; import { + edrRpcDebugTraceToHardhat2, edrTracingMessageResultToMinimalEVMResult, edrTracingMessageToMinimalMessage, edrTracingStepToMinimalInterpreterStep, @@ -508,11 +509,58 @@ export class EdrProviderWrapper // e.g. `HardhatNetwork/2.19.0/@nomicfoundation/edr/0.2.0-dev` if (args.method === "web3_clientVersion") { return clientVersion(response.result); + } else if (isDebugTraceMethod(args.method)) { + return this._debugTraceResultToHardhat2( + args.method, + params, + response.result + ); } else { return response.result; } } + private async _debugTraceResultToHardhat2( + method: DebugTraceMethod, + params: any[], + result: any + ): Promise { + const options = debugTraceOptions(method, params); + if (!usesDefaultTracer(options)) { + return result; + } + + const storageEnabled = options?.disableStorage !== true; + const rootAddress = storageEnabled + ? await this._debugTraceRootAddress(method, params) + : undefined; + + return edrRpcDebugTraceToHardhat2(result, storageEnabled, rootAddress); + } + + /** Returns the address whose code the traced transaction runs. */ + private async _debugTraceRootAddress( + method: DebugTraceMethod, + params: any[] + ): Promise { + if (method === "debug_traceCall") { + return params[0]?.to ?? undefined; + } + + const responseObject = await this._provider.handleRequest( + JSON.stringify({ + method: "eth_getTransactionByHash", + params: [params[0]], + }) + ); + const response = + typeof responseObject.data === "string" + ? JSON.parse(responseObject.data) + : responseObject.data; + + return response.result?.to ?? undefined; + } + private async _addCompilationResult( solcVersion: string, input: CompilerInput, diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index 1a4adc90eae..c4ffde74063 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -12,6 +12,7 @@ import { Address } from "@ethereumjs/util"; import { requireNapiRsModule } from "../../../../common/napi-rs"; import { HardforkName } from "../../../util/hardforks"; import { IntervalMiningConfig, MempoolOrder } from "../node-types"; +import { RpcDebugTraceOutput, RpcStructLog } from "../output"; import { MinimalEVMResult, MinimalInterpreterStep, @@ -136,3 +137,235 @@ export function httpHeadersToEdr(input?: { return httpHeaders; } + +/** A struct log entry of EDR's geth-style default tracer output. */ +export interface EdrGethStructLog { + pc: number; + op: string; + gas: number; + gasCost: number; + depth: number; + error?: string; + stack?: string[]; + returnData?: string; + memory?: string[]; + storage?: Record; + refund?: number; +} + +/** EDR's geth-style default tracer output. */ +export interface EdrGethDefaultTrace { + failed: boolean; + gas: number; + returnValue: string; + structLogs: EdrGethStructLog[]; +} + +const HEX_PREFIX = "0x"; +const WORD_HEX_LENGTH = 64; +const ADDRESS_HEX_LENGTH = 40; + +const CALL_OPCODES_WITH_OWN_STORAGE = new Set(["CALL", "STATICCALL"]); +const CALL_OPCODES_WITH_CALLER_STORAGE = new Set(["DELEGATECALL", "CALLCODE"]); +const CREATE_OPCODES = new Set(["CREATE", "CREATE2"]); + +/** + * The target address sits second from the top of the stack, below the gas. + * This holds for CALL, CALLCODE, DELEGATECALL and STATICCALL. + */ +const CALL_ADDRESS_STACK_OFFSET = 2; + +function stripHexPrefix(hex: string): string { + return hex.startsWith(HEX_PREFIX) ? hex.slice(HEX_PREFIX.length) : hex; +} + +function edrStackItemToHardhat2(item: string): string { + return stripHexPrefix(item).padStart(WORD_HEX_LENGTH, "0"); +} + +function edrStorageToHardhat2( + storage: Record +): Record { + return Object.fromEntries( + Object.entries(storage).map(([key, value]) => [ + stripHexPrefix(key), + stripHexPrefix(value), + ]) + ); +} + +function stackItemToAddress(item: string): string { + return edrStackItemToHardhat2(item).slice(-ADDRESS_HEX_LENGTH); +} + +function normalizeAddress(address: string): string { + return stripHexPrefix(address).toLowerCase(); +} + +/** + * Tracks the storage that Hardhat 2 reported on every step. + * + * EDR reports storage only on SLOAD and SSTORE steps. Each report holds every + * slot the executing contract has accessed so far in the transaction. This + * class repeats that snapshot on every step, keyed by the storage context of + * each call frame. The context of a CALL or STATICCALL is its target + * address, read from the stack. DELEGATECALL and CALLCODE keep the caller's + * context. A CREATE context is renamed to the created address once the frame + * returns. Without the stack, each called frame gets a new context, so its + * storage values can be stale until the next SLOAD or SSTORE. + */ +class StorageTracker { + private readonly _storageByContext = new Map< + string, + Record + >(); + + // The storage context of each active call frame, indexed by depth - 1. + private readonly _contexts: string[]; + + // The storage context of the frame the previous step entered, if any. + private _nextContext: string | undefined; + + // The context of each CREATE awaiting its address, keyed by the depth of + // the CREATE step. + private readonly _pendingCreateContexts = new Map(); + + constructor(rootContext: string) { + this._contexts = [rootContext]; + } + + public storageAt( + log: EdrGethStructLog, + stepIndex: number + ): Record { + this._enterOrLeaveFrames(log, stepIndex); + + const context = this._contexts[this._contexts.length - 1]; + if (log.storage !== undefined) { + this._storageByContext.set(context, edrStorageToHardhat2(log.storage)); + } + + this._nextContext = this._childContext(log, context, stepIndex); + + return { ...(this._storageByContext.get(context) ?? {}) }; + } + + private _enterOrLeaveFrames(log: EdrGethStructLog, stepIndex: number): void { + if (log.depth > this._contexts.length) { + // Without the stack, the frame's storage context is unknown. + this._contexts.push(this._nextContext ?? `frame:${stepIndex}`); + return; + } + + while (log.depth < this._contexts.length) { + this._contexts.pop(); + } + + const createContext = this._pendingCreateContexts.get(log.depth); + if (createContext !== undefined) { + this._pendingCreateContexts.delete(log.depth); + this._renameCreateContext(createContext, log.stack); + } + } + + private _renameCreateContext( + createContext: string, + stack: string[] | undefined + ): void { + const createdAddress = stack?.[stack.length - 1]; + const storage = this._storageByContext.get(createContext); + if ( + createdAddress === undefined || + BigInt(createdAddress) === 0n || + storage === undefined + ) { + return; + } + + this._storageByContext.delete(createContext); + this._storageByContext.set(stackItemToAddress(createdAddress), storage); + } + + private _childContext( + log: EdrGethStructLog, + context: string, + stepIndex: number + ): string | undefined { + if (CALL_OPCODES_WITH_CALLER_STORAGE.has(log.op)) { + return context; + } + + if (CALL_OPCODES_WITH_OWN_STORAGE.has(log.op)) { + const target = log.stack?.[log.stack.length - CALL_ADDRESS_STACK_OFFSET]; + return target === undefined ? undefined : stackItemToAddress(target); + } + + if (CREATE_OPCODES.has(log.op)) { + const createContext = `create:${stepIndex}`; + this._pendingCreateContexts.set(log.depth, createContext); + return createContext; + } + + return undefined; + } +} + +/** + * Converts EDR's geth-style default tracer output to Hardhat 2's debug trace + * format. + * + * @param trace The output of `debug_traceTransaction` or `debug_traceCall`. + * @param storageEnabled Whether the request captured storage. + * @param rootAddress The address whose code the transaction runs. Omit it for + * a contract creation, whose constructor cannot be re-entered. + */ +export function edrRpcDebugTraceToHardhat2( + trace: EdrGethDefaultTrace, + storageEnabled: boolean, + rootAddress?: string +): RpcDebugTraceOutput { + const storageTracker = storageEnabled + ? new StorageTracker( + rootAddress !== undefined ? normalizeAddress(rootAddress) : "root" + ) + : undefined; + + const structLogs = trace.structLogs.map((log, stepIndex) => { + const result: RpcStructLog = { + depth: log.depth, + gas: log.gas, + gasCost: log.gasCost, + op: log.op, + pc: log.pc, + }; + + if (log.memory !== undefined) { + result.memory = log.memory.map(stripHexPrefix); + } + + if (log.stack !== undefined) { + result.stack = log.stack.map(edrStackItemToHardhat2); + } + + if (storageTracker !== undefined) { + result.storage = storageTracker.storageAt(log, stepIndex); + } + + if (log.error !== undefined) { + result.error = { message: log.error }; + } + + if (log.returnData !== undefined) { + result.returnData = log.returnData; + } + + return result; + }); + + return { + failed: trace.failed, + gas: trace.gas, + returnValue: trace.returnValue === HEX_PREFIX ? "" : trace.returnValue, + structLogs, + }; +} diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts new file mode 100644 index 00000000000..ef17a5371de --- /dev/null +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts @@ -0,0 +1,540 @@ +import { assert } from "chai"; +import fsExtra from "fs-extra"; +import _ from "lodash"; +import path from "path"; + +import { numberToRpcQuantity } from "../../../../src/internal/core/jsonrpc/types/base-types"; +import { + RpcDebugTraceOutput, + RpcStructLog, +} from "../../../../src/internal/hardhat-network/provider/output"; +import { EthereumProvider } from "../../../../types"; +import { EXAMPLE_CONTRACT } from "../helpers/contracts"; +import { DEFAULT_ACCOUNTS_ADDRESSES, PROVIDERS } from "../helpers/providers"; +import { deployContract } from "../helpers/transactions"; + +type ScenarioName = + | "modifiesState" + | "elongatedMemory" + | "storageContexts" + | "staticcall" + | "callcode" + | "reentrancy" + | "reentrancyCall" + | "create" + | "createAndCall" + | "revert" + | "traceCall"; + +/** + * Traces recorded with Hardhat 2.29.1 and EDR 0.12.0-next.23, the last + * release before EDR adopted geth's debug trace format. The recorder used + * `useProvider`'s defaults, so the shanghai hardfork and chain id 123. The + * gas values depend on them. + */ +const HARDHAT_2_TRACES: Record = + fsExtra.readJsonSync( + path.join(__dirname, "fixture-debug-traces", "hardhat-2.29.1.json") + ); + +const TX_GAS = numberToRpcQuantity(1_000_000); +const SENDER = DEFAULT_ACCOUNTS_ADDRESSES[0]; + +function address(index: number): string { + return `0x${index.toString(16).padStart(40, "0")}`; +} + +const STORAGE_ADDRESS = address(0x105); +const LIBRARY_ADDRESS = address(0x106); +const MAIN_ADDRESS = address(0x107); +const REVERT_ADDRESS = address(0x108); +const CREATE_ADDRESS = address(0x10a); +const REENTRANCY_ADDRESS = address(0x10b); +const STOP_ADDRESS = address(0x10c); +const STATICCALL_ADDRESS = address(0x10d); +const READER_ADDRESS = address(0x10e); +const CALLCODE_ADDRESS = address(0x10f); +const CREATE_AND_CALL_ADDRESS = address(0x110); +const INFINITE_LOOP_ADDRESS = address(0x111); +const UNKNOWN_OPCODE_ADDRESS = address(0x112); +const ELONGATED_MEMORY_ADDRESS = "0x1234567890123456789012345678901234567890"; + +function withoutPrefix(hex: string): string { + return hex.slice(2); +} + +/** Calls `target` without calldata, keeping 32 bytes of its output. */ +function call(target: string): string { + return `6020600060006000600073${withoutPrefix(target)}5af150`; +} + +function staticcall(target: string): string { + return `600060006000600073${withoutPrefix(target)}5afa50`; +} + +function delegatecall(target: string): string { + return `600060006000600073${withoutPrefix(target)}5af450`; +} + +function callcode(target: string): string { + return `6000600060006000600073${withoutPrefix(target)}5af250`; +} + +/** Init code that sets slot 0 to 1 and deploys `PUSH1 0 SLOAD POP STOP`. */ +const SLOT_READER_INIT_CODE = "60016000556460005450006000526005601bf3"; +/** The init code's size in bytes, as one hex byte. */ +const SLOT_READER_INIT_CODE_SIZE = "13"; +/** The init code's offset in memory, 32 bytes minus its 19 bytes. */ +const SLOT_READER_INIT_CODE_OFFSET = "0d"; + +/** Stores the init code at the end of the first memory word. */ +const STORE_SLOT_READER_INIT_CODE = `72${SLOT_READER_INIT_CODE}600052`; + +/** Calls the address in the second memory word. */ +const CALL_STORED_ADDRESS = "600060006000600060006020515af150"; + +const CODE: Record = { + // Increments slot 0, sets slot 1 to 0x42 and returns slot 0. + [STORAGE_ADDRESS]: "0x600054600101600055604260015560005460005260206000f3", + // Sets slot 2 to 0x77. + [LIBRARY_ADDRESS]: "0x607760025500", + // Loads slot 0. + [READER_ADDRESS]: "0x6000545000", + // Loads slot 5, delegatecalls the library, calls the storage contract + // twice, loads slot 6 and returns the storage contract's output. + [MAIN_ADDRESS]: [ + "0x60055450", + delegatecall(LIBRARY_ADDRESS), + call(STORAGE_ADDRESS), + call(STORAGE_ADDRESS), + "6006545060206000f3", + ].join(""), + // Calls the reader, then staticcalls it. + [STATICCALL_ADDRESS]: [ + "0x", + call(READER_ADDRESS), + staticcall(READER_ADDRESS), + "00", + ].join(""), + // Loads slot 7, callcodes the library and loads slot 2. + [CALLCODE_ADDRESS]: [ + "0x60075450", + callcode(LIBRARY_ADDRESS), + "6002545000", + ].join(""), + // Reverts with 0xaa. + [REVERT_ADDRESS]: "0x60aa60005260206000fd", + // Without calldata, sets slot 3 to 1 and calls itself with one byte of + // calldata. That call sets slots 3 and 4 to 2. + [REENTRANCY_ADDRESS]: [ + "0x36602f57600160035560006000600160006000", + `73${withoutPrefix(REENTRANCY_ADDRESS)}5af150600050005b`, + "6002600355600260045500", + ].join(""), + // Creates a contract whose init code sets slot 0. + [CREATE_ADDRESS]: "0x656001600055006000526006601a6000f05000", + // Creates a slot reader with CREATE and with CREATE2 and calls each one. + // Then creates a contract whose init code reverts. + [CREATE_AND_CALL_ADDRESS]: [ + "0x", + STORE_SLOT_READER_INIT_CODE, + `60${SLOT_READER_INIT_CODE_SIZE}`, + `60${SLOT_READER_INIT_CODE_OFFSET}6000f0602052`, + CALL_STORED_ADDRESS, + STORE_SLOT_READER_INIT_CODE, + `600060${SLOT_READER_INIT_CODE_SIZE}`, + `60${SLOT_READER_INIT_CODE_OFFSET}6000f5602052`, + CALL_STORED_ADDRESS, + "6460006000fd6000526005601b6000f05000", + ].join(""), + // JUMPDEST PUSH1 0 JUMP + [INFINITE_LOOP_ADDRESS]: "0x5b600056", + // An undefined opcode. + [UNKNOWN_OPCODE_ADDRESS]: "0x0c", + // PUSH0 PUSH0 MSTORE PUSH0 + [ELONGATED_MEMORY_ADDRESS]: "0x5F5F525F", + [STOP_ADDRESS]: "0x00", +}; + +async function setCode(provider: EthereumProvider): Promise { + for (const [codeAddress, code] of Object.entries(CODE)) { + await provider.send("hardhat_setCode", [codeAddress, code]); + } +} + +/** Sends a transaction and returns its hash, even if it failed. */ +async function sendTransaction( + provider: EthereumProvider, + tx: { from?: string; to: string; data?: string; gas?: string } +): Promise { + try { + return await provider.send("eth_sendTransaction", [ + { from: SENDER, gas: TX_GAS, ...tx }, + ]); + } catch { + const block = await provider.send("eth_getBlockByNumber", [ + "latest", + false, + ]); + return block.transactions[0]; + } +} + +type OptionalStructLogField = "memory" | "stack" | "storage"; + +function withoutFields( + trace: RpcDebugTraceOutput, + fields: OptionalStructLogField[] +): RpcDebugTraceOutput { + return { + ...trace, + structLogs: trace.structLogs.map((log): RpcStructLog => + _.omit(log, fields) + ), + }; +} + +describe("Debug module", function () { + PROVIDERS.forEach(({ name, useProvider }) => { + describe(`${name} provider`, function () { + useProvider(); + + beforeEach(async function () { + await setCode(this.provider); + }); + + describe("debug_traceTransaction", function () { + async function traceTransaction( + provider: EthereumProvider, + txHash: string, + options?: object + ): Promise { + const params = options === undefined ? [txHash] : [txHash, options]; + return provider.send("debug_traceTransaction", params); + } + + it("reports a missing transaction hash", async function () { + await assert.isRejected( + this.provider.send("debug_traceTransaction", []), + "invalid length 0" + ); + }); + + it("returns an empty trace for value transfers", async function () { + const txHash = await sendTransaction(this.provider, { + to: DEFAULT_ACCOUNTS_ADDRESSES[1], + }); + + assert.deepEqual(await traceTransaction(this.provider, txHash), { + gas: 21_000, + failed: false, + returnValue: "", + structLogs: [], + }); + }); + + it("matches Hardhat 2's trace of a contract call", async function () { + const contractAddress = await deployContract( + this.provider, + `0x${EXAMPLE_CONTRACT.bytecode.object}`, + DEFAULT_ACCOUNTS_ADDRESSES[1] + ); + const txHash = await sendTransaction(this.provider, { + from: DEFAULT_ACCOUNTS_ADDRESSES[1], + to: contractAddress, + data: `${EXAMPLE_CONTRACT.selectors.modifiesState}000000000000000000000000000000000000000000000000000000000000000a`, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash), + HARDHAT_2_TRACES.modifiesState + ); + }); + + const SCENARIOS: Array<{ + scenario: ScenarioName; + description: string; + tx: { from?: string; to: string }; + }> = [ + { + scenario: "elongatedMemory", + description: "memory without superfluous words", + tx: { + from: DEFAULT_ACCOUNTS_ADDRESSES[2], + to: ELONGATED_MEMORY_ADDRESS, + }, + }, + { + scenario: "storageContexts", + description: "storage across DELEGATECALL and CALL", + tx: { to: MAIN_ADDRESS }, + }, + { + scenario: "staticcall", + description: "storage across STATICCALL", + tx: { to: STATICCALL_ADDRESS }, + }, + { + scenario: "callcode", + description: "storage across CALLCODE", + tx: { to: CALLCODE_ADDRESS }, + }, + { + scenario: "reentrancy", + description: "storage written by a reentrant call", + tx: { to: REENTRANCY_ADDRESS }, + }, + { + scenario: "create", + description: "storage written by a created contract", + tx: { to: CREATE_ADDRESS }, + }, + { + scenario: "createAndCall", + description: "calls into contracts created with CREATE and CREATE2", + tx: { to: CREATE_AND_CALL_ADDRESS }, + }, + { + scenario: "revert", + description: "a reverted transaction", + tx: { to: REVERT_ADDRESS }, + }, + ]; + + for (const { scenario, description, tx } of SCENARIOS) { + it(`matches Hardhat 2's trace of ${description}`, async function () { + const txHash = await sendTransaction(this.provider, tx); + + assert.deepEqual( + await traceTransaction(this.provider, txHash), + HARDHAT_2_TRACES[scenario] + ); + }); + } + + // Without the stack, storage is exact only when every call keeps the + // caller's storage context, as in the CALLCODE scenario. + const DISABLE_OPTIONS: Array<{ + option: string; + field: OptionalStructLogField; + scenario: ScenarioName; + to: string; + }> = [ + { + option: "disableMemory", + field: "memory", + scenario: "storageContexts", + to: MAIN_ADDRESS, + }, + { + option: "disableStack", + field: "stack", + scenario: "callcode", + to: CALLCODE_ADDRESS, + }, + { + option: "disableStorage", + field: "storage", + scenario: "storageContexts", + to: MAIN_ADDRESS, + }, + ]; + + for (const { option, field, scenario, to } of DISABLE_OPTIONS) { + it(`omits ${field} with ${option}`, async function () { + const txHash = await sendTransaction(this.provider, { to }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { [option]: true }), + withoutFields(HARDHAT_2_TRACES[scenario], [field]) + ); + }); + } + + it("captures memory with disableMemory set to false", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { + disableMemory: false, + }), + HARDHAT_2_TRACES.storageContexts + ); + }); + + it("captures memory with enableMemory set to true", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { + enableMemory: true, + }), + HARDHAT_2_TRACES.storageContexts + ); + }); + + it("lets enableMemory take precedence over disableMemory", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { + enableMemory: true, + disableMemory: true, + }), + HARDHAT_2_TRACES.storageContexts + ); + }); + + it("omits memory with enableMemory set to false", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { + enableMemory: false, + }), + withoutFields(HARDHAT_2_TRACES.storageContexts, ["memory"]) + ); + }); + + it("adds returnData with enableReturnData", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + const trace = await traceTransaction(this.provider, txHash, { + enableReturnData: true, + }); + + assert.deepEqual( + { + ...trace, + structLogs: trace.structLogs.map((log) => + _.omit(log, "returnData") + ), + }, + HARDHAT_2_TRACES.storageContexts + ); + // The last step follows the second call, which returned 2. + assert.equal( + trace.structLogs[trace.structLogs.length - 1].returnData, + `0x${"2".padStart(64, "0")}` + ); + }); + + // Unlike Hardhat 2.29.1, a halting step carries an error. + it("adds an error to an out-of-gas step, unlike Hardhat 2.29.1", async function () { + const txHash = await sendTransaction(this.provider, { + to: INFINITE_LOOP_ADDRESS, + gas: numberToRpcQuantity(21_100), + }); + + const trace = await traceTransaction(this.provider, txHash); + + assert.isTrue(trace.failed); + assert.deepEqual( + trace.structLogs[trace.structLogs.length - 1].error, + { + message: "Some(OutOfGas)", + } + ); + }); + + // EDR's output lacks the opcode byte that Hardhat 2.29.1 put in the + // name. + it("names an undefined opcode Unknown, unlike Hardhat 2.29.1", async function () { + const txHash = await sendTransaction(this.provider, { + to: UNKNOWN_OPCODE_ADDRESS, + }); + + const trace = await traceTransaction(this.provider, txHash); + + assert.deepEqual( + trace.structLogs.map((log) => [log.op, log.error]), + [["Unknown", { message: "Some(OpcodeNotFound)" }]] + ); + }); + + it("keeps a STOP as the first step", async function () { + const txHash = await sendTransaction(this.provider, { + to: STOP_ADDRESS, + }); + + const trace = await traceTransaction(this.provider, txHash); + + assert.deepEqual( + trace.structLogs.map((log) => log.op), + ["STOP"] + ); + }); + + it("returns geth's output for built-in tracers", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + const trace: any = await traceTransaction(this.provider, txHash, { + tracer: "callTracer", + }); + + assert.equal(trace.type, "CALL"); + assert.equal(trace.to, MAIN_ADDRESS); + assert.lengthOf(trace.calls, 3); + assert.notProperty(trace, "structLogs"); + }); + }); + + describe("debug_traceCall", function () { + const CALL = { from: SENDER, to: STORAGE_ADDRESS, gas: TX_GAS }; + + it("matches Hardhat 2's trace", async function () { + assert.deepEqual( + await this.provider.send("debug_traceCall", [CALL, "latest"]), + HARDHAT_2_TRACES.traceCall + ); + }); + + it("matches Hardhat 2's trace of storage written by a reentrant call", async function () { + assert.deepEqual( + await this.provider.send("debug_traceCall", [ + { ...CALL, to: REENTRANCY_ADDRESS }, + "latest", + ]), + HARDHAT_2_TRACES.reentrancyCall + ); + }); + + it("matches Hardhat 2's trace without a block tag", async function () { + assert.deepEqual( + await this.provider.send("debug_traceCall", [CALL]), + HARDHAT_2_TRACES.traceCall + ); + }); + + it("omits memory, stack and storage when disabled", async function () { + const trace = await this.provider.send("debug_traceCall", [ + CALL, + "latest", + { disableMemory: true, disableStack: true, disableStorage: true }, + ]); + + assert.deepEqual( + trace, + withoutFields(HARDHAT_2_TRACES.traceCall, [ + "memory", + "stack", + "storage", + ]) + ); + }); + }); + }); + }); +}); diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json b/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json new file mode 100644 index 00000000000..f8a7c6b4f94 --- /dev/null +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json @@ -0,0 +1,6048 @@ +{ + "modifiesState": { + "failed": false, + "gas": 44945, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 978796, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978793, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978790, + "gasCost": 12, + "op": "MSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000040" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978778, + "gasCost": 3, + "op": "PUSH1", + "pc": 5, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978775, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 7, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978773, + "gasCost": 3, + "op": "LT", + "pc": 8, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978770, + "gasCost": 3, + "op": "PUSH2", + "pc": 9, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978767, + "gasCost": 10, + "op": "JUMPI", + "pc": 12, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000034" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978757, + "gasCost": 3, + "op": "PUSH1", + "pc": 13, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978754, + "gasCost": 3, + "op": "CALLDATALOAD", + "pc": 15, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978751, + "gasCost": 3, + "op": "PUSH1", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "1b334ecc00000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978748, + "gasCost": 3, + "op": "SHR", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "1b334ecc00000000000000000000000000000000000000000000000000000000", + "00000000000000000000000000000000000000000000000000000000000000e0" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978745, + "gasCost": 3, + "op": "DUP1", + "pc": 19, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978742, + "gasCost": 3, + "op": "PUSH4", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978739, + "gasCost": 3, + "op": "EQ", + "pc": 25, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "000000000000000000000000000000000000000000000000000000001b334ecc", + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978736, + "gasCost": 3, + "op": "PUSH2", + "pc": 26, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978733, + "gasCost": 10, + "op": "JUMPI", + "pc": 29, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000039" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978723, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 57, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978722, + "gasCost": 3, + "op": "PUSH2", + "pc": 58, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978719, + "gasCost": 3, + "op": "PUSH1", + "pc": 61, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978716, + "gasCost": 3, + "op": "DUP1", + "pc": 63, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978713, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 64, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978711, + "gasCost": 3, + "op": "SUB", + "pc": 65, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978708, + "gasCost": 3, + "op": "PUSH1", + "pc": 66, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978705, + "gasCost": 3, + "op": "DUP2", + "pc": 68, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978702, + "gasCost": 3, + "op": "LT", + "pc": 69, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978699, + "gasCost": 3, + "op": "ISZERO", + "pc": 70, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978696, + "gasCost": 3, + "op": "PUSH2", + "pc": 71, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978693, + "gasCost": 10, + "op": "JUMPI", + "pc": 74, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000001", + "000000000000000000000000000000000000000000000000000000000000004f" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978683, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 79, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978682, + "gasCost": 3, + "op": "DUP2", + "pc": 80, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978679, + "gasCost": 3, + "op": "ADD", + "pc": 81, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978676, + "gasCost": 3, + "op": "SWAP1", + "pc": 82, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978673, + "gasCost": 3, + "op": "DUP1", + "pc": 83, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978670, + "gasCost": 3, + "op": "DUP1", + "pc": 84, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978667, + "gasCost": 3, + "op": "CALLDATALOAD", + "pc": 85, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978664, + "gasCost": 3, + "op": "SWAP1", + "pc": 86, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000004", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978661, + "gasCost": 3, + "op": "PUSH1", + "pc": 87, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978658, + "gasCost": 3, + "op": "ADD", + "pc": 89, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978655, + "gasCost": 3, + "op": "SWAP1", + "pc": 90, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978652, + "gasCost": 3, + "op": "SWAP3", + "pc": 91, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978649, + "gasCost": 3, + "op": "SWAP2", + "pc": 92, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978646, + "gasCost": 3, + "op": "SWAP1", + "pc": 93, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978643, + "gasCost": 2, + "op": "POP", + "pc": 94, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978641, + "gasCost": 2, + "op": "POP", + "pc": 95, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000024", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978639, + "gasCost": 2, + "op": "POP", + "pc": 96, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000024" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978637, + "gasCost": 3, + "op": "PUSH2", + "pc": 97, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978634, + "gasCost": 8, + "op": "JUMP", + "pc": 100, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "00000000000000000000000000000000000000000000000000000000000000c3" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978626, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 195, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978625, + "gasCost": 3, + "op": "PUSH1", + "pc": 196, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978622, + "gasCost": 2100, + "op": "SLOAD", + "pc": 198, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976522, + "gasCost": 3, + "op": "PUSH32", + "pc": 199, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976519, + "gasCost": 3, + "op": "DUP3", + "pc": 232, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976516, + "gasCost": 3, + "op": "PUSH1", + "pc": 233, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976513, + "gasCost": 3, + "op": "MLOAD", + "pc": 235, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000040" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976510, + "gasCost": 3, + "op": "DUP1", + "pc": 236, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976507, + "gasCost": 3, + "op": "DUP3", + "pc": 237, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976504, + "gasCost": 3, + "op": "DUP2", + "pc": 238, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976501, + "gasCost": 9, + "op": "MSTORE", + "pc": 239, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976492, + "gasCost": 3, + "op": "PUSH1", + "pc": 240, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976489, + "gasCost": 3, + "op": "ADD", + "pc": 242, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976486, + "gasCost": 3, + "op": "SWAP2", + "pc": 243, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000080", + "00000000000000000000000000000000000000000000000000000000000000a0" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976483, + "gasCost": 2, + "op": "POP", + "pc": 244, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0", + "0000000000000000000000000000000000000000000000000000000000000080", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976481, + "gasCost": 2, + "op": "POP", + "pc": 245, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976479, + "gasCost": 3, + "op": "PUSH1", + "pc": 246, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976476, + "gasCost": 3, + "op": "MLOAD", + "pc": 248, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0", + "0000000000000000000000000000000000000000000000000000000000000040" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976473, + "gasCost": 3, + "op": "DUP1", + "pc": 249, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976470, + "gasCost": 3, + "op": "SWAP2", + "pc": 250, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "00000000000000000000000000000000000000000000000000000000000000a0", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976467, + "gasCost": 3, + "op": "SUB", + "pc": 251, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000080", + "00000000000000000000000000000000000000000000000000000000000000a0" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976464, + "gasCost": 3, + "op": "SWAP1", + "pc": 252, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976461, + "gasCost": 1381, + "op": "LOG2", + "pc": 253, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000080" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 975080, + "gasCost": 3, + "op": "DUP1", + "pc": 254, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 975077, + "gasCost": 3, + "op": "PUSH1", + "pc": 255, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 975074, + "gasCost": 3, + "op": "DUP2", + "pc": 257, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 975071, + "gasCost": 3, + "op": "SWAP1", + "pc": 258, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 975068, + "gasCost": 20000, + "op": "SSTORE", + "pc": 259, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + }, + { + "depth": 1, + "gas": 955068, + "gasCost": 2, + "op": "POP", + "pc": 260, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + }, + { + "depth": 1, + "gas": 955066, + "gasCost": 2, + "op": "POP", + "pc": 261, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + }, + { + "depth": 1, + "gas": 955064, + "gasCost": 8, + "op": "JUMP", + "pc": 262, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc", + "0000000000000000000000000000000000000000000000000000000000000065" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + }, + { + "depth": 1, + "gas": 955056, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 101, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + }, + { + "depth": 1, + "gas": 955055, + "gasCost": 0, + "op": "STOP", + "pc": 102, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000080", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000000a" + ], + "stack": [ + "000000000000000000000000000000000000000000000000000000001b334ecc" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" + } + } + ] + }, + "elongatedMemory": { + "failed": false, + "gas": 21012, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 2, + "op": "PUSH0", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978998, + "gasCost": 2, + "op": "PUSH0", + "pc": 1, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978996, + "gasCost": 6, + "op": "MSTORE", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978990, + "gasCost": 2, + "op": "PUSH0", + "pc": 3, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 0, + "op": "STOP", + "pc": 4, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + } + ] + }, + "storageContexts": { + "failed": false, + "gas": 97460, + "returnValue": "0x0000000000000000000000000000000000000000000000000000000000000002", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976897, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976895, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976892, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976889, + "gasCost": 3, + "op": "PUSH1", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976886, + "gasCost": 3, + "op": "PUSH1", + "pc": 10, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976883, + "gasCost": 3, + "op": "PUSH20", + "pc": 12, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976880, + "gasCost": 2, + "op": "GAS", + "pc": 33, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000106" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976878, + "gasCost": 961655, + "op": "DELEGATECALL", + "pc": 34, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000106", + "00000000000000000000000000000000000000000000000000000000000ee7ee" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959055, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959052, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000077" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959049, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 2, + "gas": 936949, + "gasCost": 0, + "op": "STOP", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952172, + "gasCost": 2, + "op": "POP", + "pc": 35, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952170, + "gasCost": 3, + "op": "PUSH1", + "pc": 36, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952167, + "gasCost": 3, + "op": "PUSH1", + "pc": 38, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952164, + "gasCost": 3, + "op": "PUSH1", + "pc": 40, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952161, + "gasCost": 3, + "op": "PUSH1", + "pc": 42, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952158, + "gasCost": 3, + "op": "PUSH1", + "pc": 44, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952155, + "gasCost": 3, + "op": "PUSH20", + "pc": 46, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952152, + "gasCost": 2, + "op": "GAS", + "pc": 67, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 952150, + "gasCost": 937314, + "op": "CALL", + "pc": 68, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105", + "00000000000000000000000000000000000000000000000000000000000e8756" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 2, + "gas": 934711, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 934708, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 932608, + "gasCost": 3, + "op": "PUSH1", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 932605, + "gasCost": 3, + "op": "ADD", + "pc": 5, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 932602, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 932599, + "gasCost": 20000, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 912599, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 912596, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 912593, + "gasCost": 22100, + "op": "SSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890493, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890490, + "gasCost": 100, + "op": "SLOAD", + "pc": 16, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890390, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890387, + "gasCost": 6, + "op": "MSTORE", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890381, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890378, + "gasCost": 3, + "op": "PUSH1", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890375, + "gasCost": 0, + "op": "RETURN", + "pc": 24, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 905211, + "gasCost": 2, + "op": "POP", + "pc": 69, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905209, + "gasCost": 3, + "op": "PUSH1", + "pc": 70, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905206, + "gasCost": 3, + "op": "PUSH1", + "pc": 72, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905203, + "gasCost": 3, + "op": "PUSH1", + "pc": 74, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905200, + "gasCost": 3, + "op": "PUSH1", + "pc": 76, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905197, + "gasCost": 3, + "op": "PUSH1", + "pc": 78, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905194, + "gasCost": 3, + "op": "PUSH20", + "pc": 80, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905191, + "gasCost": 2, + "op": "GAS", + "pc": 101, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 905189, + "gasCost": 891047, + "op": "CALL", + "pc": 102, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105", + "00000000000000000000000000000000000000000000000000000000000dcfe5" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 2, + "gas": 890947, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890944, + "gasCost": 100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890844, + "gasCost": 3, + "op": "PUSH1", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890841, + "gasCost": 3, + "op": "ADD", + "pc": 5, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890838, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890835, + "gasCost": 100, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890735, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890732, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890729, + "gasCost": 100, + "op": "SSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890629, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890626, + "gasCost": 100, + "op": "SLOAD", + "pc": 16, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890526, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890523, + "gasCost": 6, + "op": "MSTORE", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890517, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890514, + "gasCost": 3, + "op": "PUSH1", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 2, + "gas": 890511, + "gasCost": 0, + "op": "RETURN", + "pc": 24, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 904653, + "gasCost": 2, + "op": "POP", + "pc": 103, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 904651, + "gasCost": 3, + "op": "PUSH1", + "pc": 104, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 904648, + "gasCost": 2100, + "op": "SLOAD", + "pc": 106, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000006" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 902548, + "gasCost": 2, + "op": "POP", + "pc": 107, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 902546, + "gasCost": 3, + "op": "PUSH1", + "pc": 108, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 902543, + "gasCost": 3, + "op": "PUSH1", + "pc": 110, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + }, + { + "depth": 1, + "gas": 902540, + "gasCost": 0, + "op": "RETURN", + "pc": 112, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" + } + } + ] + }, + "staticcall": { + "failed": false, + "gas": 25954, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978991, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH20", + "pc": 10, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 2, + "op": "GAS", + "pc": 31, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010e" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978980, + "gasCost": 963725, + "op": "CALL", + "pc": 32, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010e", + "00000000000000000000000000000000000000000000000000000000000ef024" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 961122, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 961119, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959019, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959017, + "gasCost": 0, + "op": "STOP", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 974272, + "gasCost": 2, + "op": "POP", + "pc": 33, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974270, + "gasCost": 3, + "op": "PUSH1", + "pc": 34, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 974267, + "gasCost": 3, + "op": "PUSH1", + "pc": 36, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974264, + "gasCost": 3, + "op": "PUSH1", + "pc": 38, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974261, + "gasCost": 3, + "op": "PUSH1", + "pc": 40, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974258, + "gasCost": 3, + "op": "PUSH20", + "pc": 42, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974255, + "gasCost": 2, + "op": "GAS", + "pc": 63, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010e" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974253, + "gasCost": 959032, + "op": "STATICCALL", + "pc": 64, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010e", + "00000000000000000000000000000000000000000000000000000000000eddad" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 958932, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 958929, + "gasCost": 100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 958829, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 958827, + "gasCost": 0, + "op": "STOP", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 974048, + "gasCost": 2, + "op": "POP", + "pc": 65, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 974046, + "gasCost": 0, + "op": "STOP", + "pc": 66, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": {} + } + ] + }, + "callcode": { + "failed": false, + "gas": 47938, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000007" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976897, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976895, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976892, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976889, + "gasCost": 3, + "op": "PUSH1", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976886, + "gasCost": 3, + "op": "PUSH1", + "pc": 10, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976883, + "gasCost": 3, + "op": "PUSH1", + "pc": 12, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976880, + "gasCost": 3, + "op": "PUSH20", + "pc": 14, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976877, + "gasCost": 2, + "op": "GAS", + "pc": 35, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000106" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976875, + "gasCost": 961652, + "op": "CALLCODE", + "pc": 36, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000106", + "00000000000000000000000000000000000000000000000000000000000ee7eb" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959052, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959049, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000077" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959046, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 936946, + "gasCost": 0, + "op": "STOP", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 952169, + "gasCost": 2, + "op": "POP", + "pc": 37, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 952167, + "gasCost": 3, + "op": "PUSH1", + "pc": 38, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 952164, + "gasCost": 100, + "op": "SLOAD", + "pc": 40, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 952064, + "gasCost": 2, + "op": "POP", + "pc": 41, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000077" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 952062, + "gasCost": 0, + "op": "STOP", + "pc": 42, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", + "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" + } + } + ] + }, + "reentrancy": { + "failed": false, + "gas": 65479, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978998, + "gasCost": 3, + "op": "PUSH1", + "pc": 1, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978995, + "gasCost": 10, + "op": "JUMPI", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000002f" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978979, + "gasCost": 22100, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956879, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956876, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956873, + "gasCost": 3, + "op": "PUSH1", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956870, + "gasCost": 3, + "op": "PUSH1", + "pc": 15, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956867, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956864, + "gasCost": 3, + "op": "PUSH20", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956861, + "gasCost": 2, + "op": "GAS", + "pc": 40, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010b" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956859, + "gasCost": 941910, + "op": "CALL", + "pc": 41, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010b", + "00000000000000000000000000000000000000000000000000000000000e99bb" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941807, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941805, + "gasCost": 3, + "op": "PUSH1", + "pc": 1, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941802, + "gasCost": 10, + "op": "JUMPI", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "000000000000000000000000000000000000000000000000000000000000002f" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941792, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 47, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941791, + "gasCost": 3, + "op": "PUSH1", + "pc": 48, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941788, + "gasCost": 3, + "op": "PUSH1", + "pc": 50, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941785, + "gasCost": 100, + "op": "SSTORE", + "pc": 52, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941685, + "gasCost": 3, + "op": "PUSH1", + "pc": 53, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941682, + "gasCost": 3, + "op": "PUSH1", + "pc": 55, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941679, + "gasCost": 22100, + "op": "SSTORE", + "pc": 57, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 919579, + "gasCost": 0, + "op": "STOP", + "pc": 58, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934528, + "gasCost": 2, + "op": "POP", + "pc": 42, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934526, + "gasCost": 3, + "op": "PUSH1", + "pc": 43, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934523, + "gasCost": 2, + "op": "POP", + "pc": 45, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934521, + "gasCost": 0, + "op": "STOP", + "pc": 46, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + } + ] + }, + "create": { + "failed": false, + "gas": 75131, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH6", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 7, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 6, + "op": "MSTORE", + "pc": 9, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000600160005500", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 10, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 12, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000006" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000006", + "000000000000000000000000000000000000000000000000000000000000001a" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978979, + "gasCost": 964183, + "op": "CREATE", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000006", + "000000000000000000000000000000000000000000000000000000000000001a", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 932181, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 932178, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 932175, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910075, + "gasCost": 0, + "op": "STOP", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924871, + "gasCost": 2, + "op": "POP", + "pc": 17, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [ + "000000000000000000000000f23460a23e6594d5ce2d2a2f205c1e2597676ad2" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 924869, + "gasCost": 0, + "op": "STOP", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000600160005500" + ], + "stack": [], + "storage": {} + } + ] + }, + "createAndCall": { + "failed": false, + "gas": 163803, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH19", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [], + "stack": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 6, + "op": "MSTORE", + "pc": 22, + "memory": [], + "stack": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 23, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 25, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000013" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 3, + "op": "PUSH1", + "pc": 27, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000013", + "000000000000000000000000000000000000000000000000000000000000000d" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978979, + "gasCost": 964183, + "op": "CREATE", + "pc": 29, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000013", + "000000000000000000000000000000000000000000000000000000000000000d", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 932181, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 932178, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 932175, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910075, + "gasCost": 3, + "op": "PUSH5", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910072, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910069, + "gasCost": 6, + "op": "MSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000006000545000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910063, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910060, + "gasCost": 3, + "op": "PUSH1", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 910057, + "gasCost": 0, + "op": "RETURN", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005", + "000000000000000000000000000000000000000000000000000000000000001b" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 923853, + "gasCost": 3, + "op": "PUSH1", + "pc": 30, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [ + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923850, + "gasCost": 6, + "op": "MSTORE", + "pc": 32, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "stack": [ + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923844, + "gasCost": 3, + "op": "PUSH1", + "pc": 33, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 923841, + "gasCost": 3, + "op": "PUSH1", + "pc": 35, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923838, + "gasCost": 3, + "op": "PUSH1", + "pc": 37, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923835, + "gasCost": 3, + "op": "PUSH1", + "pc": 39, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923832, + "gasCost": 3, + "op": "PUSH1", + "pc": 41, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923829, + "gasCost": 3, + "op": "PUSH1", + "pc": 43, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923826, + "gasCost": 3, + "op": "MLOAD", + "pc": 45, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923823, + "gasCost": 2, + "op": "GAS", + "pc": 46, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923821, + "gasCost": 909388, + "op": "CALL", + "pc": 47, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef", + "00000000000000000000000000000000000000000000000000000000000e18ad" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 909288, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 909285, + "gasCost": 100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 909185, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 909183, + "gasCost": 0, + "op": "STOP", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 923616, + "gasCost": 2, + "op": "POP", + "pc": 48, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923614, + "gasCost": 3, + "op": "PUSH19", + "pc": 49, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 923611, + "gasCost": 3, + "op": "PUSH1", + "pc": 69, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000060016000556460005450006000526005601bf3" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923608, + "gasCost": 3, + "op": "MSTORE", + "pc": 71, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923605, + "gasCost": 3, + "op": "PUSH1", + "pc": 72, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 923602, + "gasCost": 3, + "op": "PUSH1", + "pc": 74, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923599, + "gasCost": 3, + "op": "PUSH1", + "pc": 76, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000013" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923596, + "gasCost": 3, + "op": "PUSH1", + "pc": 78, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000013", + "000000000000000000000000000000000000000000000000000000000000000d" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 923593, + "gasCost": 909662, + "op": "CREATE2", + "pc": 80, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000013", + "000000000000000000000000000000000000000000000000000000000000000d", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 877654, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 877651, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 877648, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855548, + "gasCost": 3, + "op": "PUSH5", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855545, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855542, + "gasCost": 6, + "op": "MSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000006000545000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855536, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855533, + "gasCost": 3, + "op": "PUSH1", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 855530, + "gasCost": 0, + "op": "RETURN", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000006000545000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005", + "000000000000000000000000000000000000000000000000000000000000001b" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 868461, + "gasCost": 3, + "op": "PUSH1", + "pc": 81, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868458, + "gasCost": 3, + "op": "MSTORE", + "pc": 83, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" + ], + "stack": [ + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868455, + "gasCost": 3, + "op": "PUSH1", + "pc": 84, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 868452, + "gasCost": 3, + "op": "PUSH1", + "pc": 86, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868449, + "gasCost": 3, + "op": "PUSH1", + "pc": 88, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868446, + "gasCost": 3, + "op": "PUSH1", + "pc": 90, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868443, + "gasCost": 3, + "op": "PUSH1", + "pc": 92, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868440, + "gasCost": 3, + "op": "PUSH1", + "pc": 94, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868437, + "gasCost": 3, + "op": "MLOAD", + "pc": 96, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868434, + "gasCost": 2, + "op": "GAS", + "pc": 97, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868432, + "gasCost": 854865, + "op": "CALL", + "pc": 98, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32", + "00000000000000000000000000000000000000000000000000000000000d4050" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 854765, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 854762, + "gasCost": 100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 854662, + "gasCost": 2, + "op": "POP", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 854660, + "gasCost": 0, + "op": "STOP", + "pc": 4, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 868227, + "gasCost": 2, + "op": "POP", + "pc": 99, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868225, + "gasCost": 3, + "op": "PUSH5", + "pc": 100, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 868222, + "gasCost": 3, + "op": "PUSH1", + "pc": 106, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "00000000000000000000000000000000000000000000000000000060006000fd" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868219, + "gasCost": 3, + "op": "MSTORE", + "pc": 108, + "memory": [ + "0000000000000000000000000060016000556460005450006000526005601bf3", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868216, + "gasCost": 3, + "op": "PUSH1", + "pc": 109, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 868213, + "gasCost": 3, + "op": "PUSH1", + "pc": 111, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868210, + "gasCost": 3, + "op": "PUSH1", + "pc": 113, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005", + "000000000000000000000000000000000000000000000000000000000000001b" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 868207, + "gasCost": 855142, + "op": "CREATE", + "pc": 115, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000005", + "000000000000000000000000000000000000000000000000000000000000001b", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 823140, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 823137, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 823134, + "gasCost": 0, + "op": "REVERT", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 836199, + "gasCost": 2, + "op": "POP", + "pc": 116, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 836197, + "gasCost": 0, + "op": "STOP", + "pc": 117, + "memory": [ + "00000000000000000000000000000000000000000000000000000060006000fd", + "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" + ], + "stack": [], + "storage": {} + } + ] + }, + "revert": { + "failed": true, + "gas": 21018, + "returnValue": "0x00000000000000000000000000000000000000000000000000000000000000aa", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 6, + "op": "MSTORE", + "pc": 4, + "memory": [], + "stack": [ + "00000000000000000000000000000000000000000000000000000000000000aa", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 5, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 7, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 0, + "op": "REVERT", + "pc": 9, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + } + ] + }, + "traceCall": { + "failed": false, + "gas": 65336, + "returnValue": "0x0000000000000000000000000000000000000000000000000000000000000001", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976897, + "gasCost": 3, + "op": "PUSH1", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976894, + "gasCost": 3, + "op": "ADD", + "pc": 5, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976891, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 1, + "gas": 976888, + "gasCost": 20000, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956888, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956885, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956882, + "gasCost": 22100, + "op": "SSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934782, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934779, + "gasCost": 100, + "op": "SLOAD", + "pc": 16, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934679, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934676, + "gasCost": 6, + "op": "MSTORE", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934670, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934667, + "gasCost": 3, + "op": "PUSH1", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + }, + { + "depth": 1, + "gas": 934664, + "gasCost": 0, + "op": "RETURN", + "pc": 24, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" + } + } + ] + }, + "reentrancyCall": { + "failed": false, + "gas": 65479, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978998, + "gasCost": 3, + "op": "PUSH1", + "pc": 1, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978995, + "gasCost": 10, + "op": "JUMPI", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000002f" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978979, + "gasCost": 22100, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956879, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956876, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956873, + "gasCost": 3, + "op": "PUSH1", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956870, + "gasCost": 3, + "op": "PUSH1", + "pc": 15, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956867, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956864, + "gasCost": 3, + "op": "PUSH20", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956861, + "gasCost": 2, + "op": "GAS", + "pc": 40, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010b" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956859, + "gasCost": 941910, + "op": "CALL", + "pc": 41, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "000000000000000000000000000000000000000000000000000000000000010b", + "00000000000000000000000000000000000000000000000000000000000e99bb" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941807, + "gasCost": 2, + "op": "CALLDATASIZE", + "pc": 0, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941805, + "gasCost": 3, + "op": "PUSH1", + "pc": 1, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941802, + "gasCost": 10, + "op": "JUMPI", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "000000000000000000000000000000000000000000000000000000000000002f" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941792, + "gasCost": 1, + "op": "JUMPDEST", + "pc": 47, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941791, + "gasCost": 3, + "op": "PUSH1", + "pc": 48, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941788, + "gasCost": 3, + "op": "PUSH1", + "pc": 50, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 941785, + "gasCost": 100, + "op": "SSTORE", + "pc": 52, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941685, + "gasCost": 3, + "op": "PUSH1", + "pc": 53, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941682, + "gasCost": 3, + "op": "PUSH1", + "pc": 55, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 941679, + "gasCost": 22100, + "op": "SSTORE", + "pc": 57, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 2, + "gas": 919579, + "gasCost": 0, + "op": "STOP", + "pc": 58, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934528, + "gasCost": 2, + "op": "POP", + "pc": 42, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934526, + "gasCost": 3, + "op": "PUSH1", + "pc": 43, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934523, + "gasCost": 2, + "op": "POP", + "pc": 45, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + }, + { + "depth": 1, + "gas": 934521, + "gasCost": 0, + "op": "STOP", + "pc": 46, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", + "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" + } + } + ] + } +} From 0eeb7e9ab4dbba73a7558d4013bc16147bdfdee4 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 22 Oct 2026 18:19:05 +0000 Subject: [PATCH 25/39] docs: describe the restored debug trace format The default tracer returns the Hardhat 2 format again and captures memory by default, so the changeset no longer announces a breaking change. It lists the remaining differences instead. --- .changeset/debug-trace-geth-format.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.changeset/debug-trace-geth-format.md b/.changeset/debug-trace-geth-format.md index 251cfadad41..aeb534615ff 100644 --- a/.changeset/debug-trace-geth-format.md +++ b/.changeset/debug-trace-geth-format.md @@ -2,6 +2,8 @@ "hardhat": minor --- -Changed `debug_traceTransaction` and `debug_traceCall` to return geth's format unchanged. They accept geth's built-in tracers, such as `callTracer` and `prestateTracer`. Stack items, storage keys and storage values are `0x`-prefixed and unpadded. Storage only appears on steps that access storage. The `returnValue` is a `0x`-prefixed hex string, which is `0x` when empty. +Kept the default tracer's Hardhat 2 format in `debug_traceTransaction` and `debug_traceCall`. Stack items, memory words, storage keys and storage values stay unprefixed and zero-padded. Memory is still captured unless `disableMemory` is set. Storage still appears on every step unless `disableStorage` is set. -BREAKING CHANGE: Memory capture is now disabled by default, as in geth. Set the `enableMemory` tracer option to `true` to capture memory. +Added support for geth's built-in tracers, such as `callTracer` and `prestateTracer`. These tracers return geth's output unchanged. The new `enableMemory` option takes precedence over `disableMemory`. + +The default tracer output differs in a few places. A step that halts now has an `error` message that comes from EDR, so do not match on its exact text. An unknown opcode is now named `Unknown`. A `STOP` at the first step is no longer dropped, so traces can have one more step. Storage no longer shows slots of another contract after a warm `SLOAD`. When `disableStack` is set, storage values can be stale until the next `SLOAD` or `SSTORE`. From 7de75da5a71bcba3063cfd49aef488acac1444d9 Mon Sep 17 00:00:00 2001 From: Wodann Date: Wed, 28 Oct 2026 15:11:14 +0000 Subject: [PATCH 26/39] deps: bump EDR to 0.25.0 The release contains NomicFoundation/edr#1301, which reinstates Response.traces(). The provider reads it to feed the VM event bridge. --- packages/hardhat-core/package.json | 2 +- pnpm-lock.yaml | 105 +++++++++++++++++------------ 2 files changed, 64 insertions(+), 43 deletions(-) diff --git a/packages/hardhat-core/package.json b/packages/hardhat-core/package.json index 6709f39987b..58bfd40bc7c 100644 --- a/packages/hardhat-core/package.json +++ b/packages/hardhat-core/package.json @@ -102,7 +102,7 @@ "dependencies": { "@ethereumjs/util": "^9.1.0", "@ethersproject/abi": "^5.1.2", - "@nomicfoundation/edr": "0.12.0-next.23", + "@nomicfoundation/edr": "0.25.0", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", "adm-zip": "^0.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d8084f2865..39f1e521d25 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,8 +201,8 @@ importers: specifier: ^5.1.2 version: 5.8.0 '@nomicfoundation/edr': - specifier: 0.12.0-next.23 - version: 0.12.0-next.23 + specifier: 0.25.0 + version: 0.25.0 '@nomicfoundation/solidity-analyzer': specifier: ^0.1.0 version: 0.1.2 @@ -3070,37 +3070,51 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@nomicfoundation/edr-darwin-arm64@0.12.0-next.23': - resolution: {integrity: sha512-Amh7mRoDzZyJJ4efqoePqdoZOzharmSOttZuJDlVE5yy07BoE8hL6ZRpa5fNYn0LCqn/KoWs8OHANWxhKDGhvQ==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-darwin-arm64@0.25.0': + resolution: {integrity: sha512-k5jOQ4430lNIRPeDMmgDMeoCp0iqY8bjO5ZYBg93sH2FEDvyS08e6stBvmm9j91+VkAj24DIdjwq3b0AEKfutw==} + engines: {node: '>= 22'} + cpu: [arm64] + os: [darwin] - '@nomicfoundation/edr-darwin-x64@0.12.0-next.23': - resolution: {integrity: sha512-9wn489FIQm7m0UCD+HhktjWx6vskZzeZD9oDc2k9ZvbBzdXwPp5tiDqUBJ+eQpByAzCDfteAJwRn2lQCE0U+Iw==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-darwin-x64@0.25.0': + resolution: {integrity: sha512-V26jWmq2qsm6Aywh0MbSEBCkB5o1EAym9KFNi3dsbAi7sNFiyFYf5tQZ7HWpttVRNOGTXnyX6GhIpb90jbLPrQ==} + engines: {node: '>= 22'} + cpu: [x64] + os: [darwin] - '@nomicfoundation/edr-linux-arm64-gnu@0.12.0-next.23': - resolution: {integrity: sha512-nlk5EejSzEUfEngv0Jkhqq3/wINIfF2ED9wAofc22w/V1DV99ASh9l3/e/MIHOQFecIZ9MDqt0Em9/oDyB1Uew==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-linux-arm64-gnu@0.25.0': + resolution: {integrity: sha512-1QRVSdq4YNS+r7f6MmWS8J/K0A9JlrzIjeV/BVEM5gTe7KyxJ0NwX4ErUAMbizl2JCmDwuD1SAak8X6YjZDMJA==} + engines: {node: '>= 22'} + cpu: [arm64] + os: [linux] - '@nomicfoundation/edr-linux-arm64-musl@0.12.0-next.23': - resolution: {integrity: sha512-SJuPBp3Rc6vM92UtVTUxZQ/QlLhLfwTftt2XUiYohmGKB3RjGzpgduEFMCA0LEnucUckU6UHrJNFHiDm77C4PQ==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-linux-arm64-musl@0.25.0': + resolution: {integrity: sha512-uNim6ggISggh9nRAtwhVgDQ4cmkypM1kpqP757DL9q8DremHMGdK8BgPMx8J2VNMfjYwC7Ohuyszztau6obkLg==} + engines: {node: '>= 22'} + cpu: [arm64] + os: [linux] - '@nomicfoundation/edr-linux-x64-gnu@0.12.0-next.23': - resolution: {integrity: sha512-NU+Qs3u7Qt6t3bJFdmmjd5CsvgI2bPPzO31KifM2Ez96/jsXYho5debtTQnimlb5NAqiHTSlxjh/F8ROcptmeQ==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-linux-x64-gnu@0.25.0': + resolution: {integrity: sha512-V0/Zjsd7WlRpwxtbtI1YFRaV0lF/+EtOHf5H01riCAZixK16N67PGY4QPwrZ/FQrk15bCzu/fFtgR5WpmFAuPg==} + engines: {node: '>= 22'} + cpu: [x64] + os: [linux] - '@nomicfoundation/edr-linux-x64-musl@0.12.0-next.23': - resolution: {integrity: sha512-F78fZA2h6/ssiCSZOovlgIu0dUeI7ItKPsDDF3UUlIibef052GCXmliMinC90jVPbrjUADMd1BUwjfI0Z8OllQ==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-linux-x64-musl@0.25.0': + resolution: {integrity: sha512-oZHb4vFOeloPwXS9pJpf3z5/QSIaTMzxObbQ6OZXqg+oK1BNxk86wmgsaMlq/4kfcWVYcYQ6m57HCUWlzU1MZw==} + engines: {node: '>= 22'} + cpu: [x64] + os: [linux] - '@nomicfoundation/edr-win32-x64-msvc@0.12.0-next.23': - resolution: {integrity: sha512-IfJZQJn7d/YyqhmguBIGoCKjE9dKjbu6V6iNEPApfwf5JyyjHYyyfkLU4rf7hygj57bfH4sl1jtQ6r8HnT62lw==} - engines: {node: '>= 20'} + '@nomicfoundation/edr-win32-x64-msvc@0.25.0': + resolution: {integrity: sha512-uB0GT6iWOJu7qHEo4vNbr0yRedzuRCmOF+YkxXrQHaY2oKGcHpqZ0UnS1ak1NMZ2iyQWc2y5y8WYySNcwPq04g==} + engines: {node: '>= 22'} + cpu: [x64] + os: [win32] - '@nomicfoundation/edr@0.12.0-next.23': - resolution: {integrity: sha512-F2/6HZh8Q9RsgkOIkRrckldbhPjIZY7d4mT9LYuW68miwGQ5l7CkAgcz9fRRiurA0+YJhtsbx/EyrD9DmX9BOw==} - engines: {node: '>= 20'} + '@nomicfoundation/edr@0.25.0': + resolution: {integrity: sha512-aO9XbrBwhKoP7O8fXVDJZR+4DJRGC1as2nsQ1V4MxnwxiZD5XfhrPSX3DE918O/1oLZ5HQ+n9e0d8D5P/JiHig==} + engines: {node: '>= 22'} '@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.2': resolution: {integrity: sha512-JaqcWPDZENCvm++lFFGjrDd8mxtf+CtLd2MiXvMNTBD33dContTZ9TWETwNFwg7JTJT5Q9HEecH7FA+HTSsIUw==} @@ -10094,29 +10108,36 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@nomicfoundation/edr-darwin-arm64@0.12.0-next.23': {} + '@nomicfoundation/edr-darwin-arm64@0.25.0': + optional: true - '@nomicfoundation/edr-darwin-x64@0.12.0-next.23': {} + '@nomicfoundation/edr-darwin-x64@0.25.0': + optional: true - '@nomicfoundation/edr-linux-arm64-gnu@0.12.0-next.23': {} + '@nomicfoundation/edr-linux-arm64-gnu@0.25.0': + optional: true - '@nomicfoundation/edr-linux-arm64-musl@0.12.0-next.23': {} + '@nomicfoundation/edr-linux-arm64-musl@0.25.0': + optional: true - '@nomicfoundation/edr-linux-x64-gnu@0.12.0-next.23': {} + '@nomicfoundation/edr-linux-x64-gnu@0.25.0': + optional: true - '@nomicfoundation/edr-linux-x64-musl@0.12.0-next.23': {} + '@nomicfoundation/edr-linux-x64-musl@0.25.0': + optional: true - '@nomicfoundation/edr-win32-x64-msvc@0.12.0-next.23': {} + '@nomicfoundation/edr-win32-x64-msvc@0.25.0': + optional: true - '@nomicfoundation/edr@0.12.0-next.23': - dependencies: - '@nomicfoundation/edr-darwin-arm64': 0.12.0-next.23 - '@nomicfoundation/edr-darwin-x64': 0.12.0-next.23 - '@nomicfoundation/edr-linux-arm64-gnu': 0.12.0-next.23 - '@nomicfoundation/edr-linux-arm64-musl': 0.12.0-next.23 - '@nomicfoundation/edr-linux-x64-gnu': 0.12.0-next.23 - '@nomicfoundation/edr-linux-x64-musl': 0.12.0-next.23 - '@nomicfoundation/edr-win32-x64-msvc': 0.12.0-next.23 + '@nomicfoundation/edr@0.25.0': + optionalDependencies: + '@nomicfoundation/edr-darwin-arm64': 0.25.0 + '@nomicfoundation/edr-darwin-x64': 0.25.0 + '@nomicfoundation/edr-linux-arm64-gnu': 0.25.0 + '@nomicfoundation/edr-linux-arm64-musl': 0.25.0 + '@nomicfoundation/edr-linux-x64-gnu': 0.25.0 + '@nomicfoundation/edr-linux-x64-musl': 0.25.0 + '@nomicfoundation/edr-win32-x64-msvc': 0.25.0 '@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.2': optional: true From 189e45e9cae5302bc93e726347889897c1c2906d Mon Sep 17 00:00:00 2001 From: Wodann Date: Wed, 28 Oct 2026 17:27:52 +0000 Subject: [PATCH 27/39] test: cover more debug trace conversions Two cases CALL a precompile and an account without code. The storage tracker must keep the caller's context after each call. A contract-creation transaction and a debug_traceCall without a recipient exercise the placeholder root context. A reverted debug_traceCall checks the failure flag and the revert data. A debug_traceCall of a value transfer checks the empty-trace conversion. An out-of-gas transaction to a precompile checks the same conversion for a failed transaction. Both trace methods must reject an unsupported tracer name. A debug_traceCall with callTracer must return a geth callTracer frame. A single nested call checks the storage tracker's fallback frame context when disableStack is set. The fixture hardhat-2.29.1.json gains the precompileCall, codelessCall, creation, creationCall, revertCall and singleCall traces. They were recorded with Hardhat 2.29.1, and existing entries are unchanged. Shared helpers and constants were extracted for the new cases. --- .../hardhat-network/provider/debug-trace.ts | 293 +++- .../fixture-debug-traces/hardhat-2.29.1.json | 1272 +++++++++++++++++ 2 files changed, 1526 insertions(+), 39 deletions(-) diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts index ef17a5371de..e5e2c05f281 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts @@ -24,7 +24,13 @@ type ScenarioName = | "create" | "createAndCall" | "revert" - | "traceCall"; + | "traceCall" + | "precompileCall" + | "codelessCall" + | "creation" + | "creationCall" + | "revertCall" + | "singleCall"; /** * Traces recorded with Hardhat 2.29.1 and EDR 0.12.0-next.23, the last @@ -39,6 +45,26 @@ const HARDHAT_2_TRACES: Record = const TX_GAS = numberToRpcQuantity(1_000_000); const SENDER = DEFAULT_ACCOUNTS_ADDRESSES[0]; +const RECIPIENT = DEFAULT_ACCOUNTS_ADDRESSES[1]; + +/** The gas of a transaction that runs no code. */ +const INTRINSIC_GAS = 21_000; + +/** The wei sent by a value transfer. */ +const TRANSFER_VALUE = numberToRpcQuantity(1); + +const CALL_TRACER = "callTracer"; +const UNSUPPORTED_TRACER = "unsupportedTracer"; +/** EDR treats an unknown tracer name as JavaScript code. */ +const UNSUPPORTED_TRACER_ERROR = "JS Tracer is not enabled"; + +/** Hardhat 2's trace of a value transfer. */ +const VALUE_TRANSFER_TRACE: RpcDebugTraceOutput = { + gas: INTRINSIC_GAS, + failed: false, + returnValue: "", + structLogs: [], +}; function address(index: number): string { return `0x${index.toString(16).padStart(40, "0")}`; @@ -57,15 +83,41 @@ const CALLCODE_ADDRESS = address(0x10f); const CREATE_AND_CALL_ADDRESS = address(0x110); const INFINITE_LOOP_ADDRESS = address(0x111); const UNKNOWN_OPCODE_ADDRESS = address(0x112); +const PRECOMPILE_CALLER_ADDRESS = address(0x113); +const CODELESS_CALLER_ADDRESS = address(0x114); +/** An account that never gets code. */ +const CODELESS_ADDRESS = address(0x115); +const SINGLE_CALL_ADDRESS = address(0x116); +const ECRECOVER_PRECOMPILE_ADDRESS = address(0x1); +const IDENTITY_PRECOMPILE_ADDRESS = address(0x4); const ELONGATED_MEMORY_ADDRESS = "0x1234567890123456789012345678901234567890"; +/** The size of an EVM memory word in bytes. */ +const WORD_SIZE = 32; + function withoutPrefix(hex: string): string { return hex.slice(2); } -/** Calls `target` without calldata, keeping 32 bytes of its output. */ -function call(target: string): string { - return `6020600060006000600073${withoutPrefix(target)}5af150`; +/** Formats a number below 256 as two hex digits, the operand of a PUSH1. */ +function hexByte(n: number): string { + return n.toString(16).padStart(2, "0"); +} + +/** Returns the size in bytes of unprefixed hex. */ +function byteLength(hex: string): number { + return hex.length / 2; +} + +/** + * Calls `target` with `inputSize` bytes of memory at `inputOffset` as + * calldata, keeping 32 bytes of its output. `inputOffset` and `inputSize` + * must each be below 256. + */ +function call(target: string, inputOffset = 0, inputSize = 0): string { + return `6020600060${hexByte(inputSize)}60${hexByte( + inputOffset + )}600073${withoutPrefix(target)}5af150`; } function staticcall(target: string): string { @@ -80,12 +132,20 @@ function callcode(target: string): string { return `6000600060006000600073${withoutPrefix(target)}5af250`; } -/** Init code that sets slot 0 to 1 and deploys `PUSH1 0 SLOAD POP STOP`. */ -const SLOT_READER_INIT_CODE = "60016000556460005450006000526005601bf3"; -/** The init code's size in bytes, as one hex byte. */ -const SLOT_READER_INIT_CODE_SIZE = "13"; -/** The init code's offset in memory, 32 bytes minus its 19 bytes. */ -const SLOT_READER_INIT_CODE_OFFSET = "0d"; +/** Sets slot 0 to 1. */ +const STORE_SLOT_0 = "6001600055"; + +/** Loads slot 0 and stops. */ +const LOAD_SLOT_0 = "6000545000"; + +/** Init code that sets slot 0 to 1, loads it and deploys no code. */ +const STORAGE_INIT_CODE = `0x${STORE_SLOT_0}${LOAD_SLOT_0}`; + +/** Init code that sets slot 0 to 1 and deploys `LOAD_SLOT_0`. */ +const SLOT_READER_INIT_CODE = `${STORE_SLOT_0}64${LOAD_SLOT_0}6000526005601bf3`; +const SLOT_READER_INIT_CODE_SIZE = byteLength(SLOT_READER_INIT_CODE); +/** The init code's offset at the end of the first memory word. */ +const SLOT_READER_INIT_CODE_OFFSET = WORD_SIZE - SLOT_READER_INIT_CODE_SIZE; /** Stores the init code at the end of the first memory word. */ const STORE_SLOT_READER_INIT_CODE = `72${SLOT_READER_INIT_CODE}600052`; @@ -93,13 +153,32 @@ const STORE_SLOT_READER_INIT_CODE = `72${SLOT_READER_INIT_CODE}600052`; /** Calls the address in the second memory word. */ const CALL_STORED_ADDRESS = "600060006000600060006020515af150"; +/** Three bytes of calldata. */ +const CALL_INPUT = "aabbcc"; +const CALL_INPUT_SIZE = byteLength(CALL_INPUT); +/** The calldata's offset at the end of the first memory word. */ +const CALL_INPUT_OFFSET = WORD_SIZE - CALL_INPUT_SIZE; + +/** + * Sets slot 0 to 1, calls `target` with `CALL_INPUT` and loads slot 0. The + * steps after the call show whether it switched the storage context. + */ +function callBetweenStorageAccesses(target: string): string { + return [ + "0x", + STORE_SLOT_0, + `62${CALL_INPUT}600052`, + call(target, CALL_INPUT_OFFSET, CALL_INPUT_SIZE), + LOAD_SLOT_0, + ].join(""); +} + const CODE: Record = { // Increments slot 0, sets slot 1 to 0x42 and returns slot 0. [STORAGE_ADDRESS]: "0x600054600101600055604260015560005460005260206000f3", // Sets slot 2 to 0x77. [LIBRARY_ADDRESS]: "0x607760025500", - // Loads slot 0. - [READER_ADDRESS]: "0x6000545000", + [READER_ADDRESS]: `0x${LOAD_SLOT_0}`, // Loads slot 5, delegatecalls the library, calls the storage contract // twice, loads slot 6 and returns the storage contract's output. [MAIN_ADDRESS]: [ @@ -138,12 +217,12 @@ const CODE: Record = { [CREATE_AND_CALL_ADDRESS]: [ "0x", STORE_SLOT_READER_INIT_CODE, - `60${SLOT_READER_INIT_CODE_SIZE}`, - `60${SLOT_READER_INIT_CODE_OFFSET}6000f0602052`, + `60${hexByte(SLOT_READER_INIT_CODE_SIZE)}`, + `60${hexByte(SLOT_READER_INIT_CODE_OFFSET)}6000f0602052`, CALL_STORED_ADDRESS, STORE_SLOT_READER_INIT_CODE, - `600060${SLOT_READER_INIT_CODE_SIZE}`, - `60${SLOT_READER_INIT_CODE_OFFSET}6000f5602052`, + `600060${hexByte(SLOT_READER_INIT_CODE_SIZE)}`, + `60${hexByte(SLOT_READER_INIT_CODE_OFFSET)}6000f5602052`, CALL_STORED_ADDRESS, "6460006000fd6000526005601b6000f05000", ].join(""), @@ -154,6 +233,14 @@ const CODE: Record = { // PUSH0 PUSH0 MSTORE PUSH0 [ELONGATED_MEMORY_ADDRESS]: "0x5F5F525F", [STOP_ADDRESS]: "0x00", + // Sets slot 0, calls the identity precompile and loads slot 0. + [PRECOMPILE_CALLER_ADDRESS]: callBetweenStorageAccesses( + IDENTITY_PRECOMPILE_ADDRESS + ), + // Sets slot 0, calls an account without code and loads slot 0. + [CODELESS_CALLER_ADDRESS]: callBetweenStorageAccesses(CODELESS_ADDRESS), + // Calls the storage contract once. + [SINGLE_CALL_ADDRESS]: `0x${call(STORAGE_ADDRESS)}00`, }; async function setCode(provider: EthereumProvider): Promise { @@ -165,7 +252,7 @@ async function setCode(provider: EthereumProvider): Promise { /** Sends a transaction and returns its hash, even if it failed. */ async function sendTransaction( provider: EthereumProvider, - tx: { from?: string; to: string; data?: string; gas?: string } + tx: { from?: string; to?: string; data?: string; gas?: string } ): Promise { try { return await provider.send("eth_sendTransaction", [ @@ -180,6 +267,21 @@ async function sendTransaction( } } +/** The fields of geth's callTracer output that the tests check. */ +interface CallTracerFrame { + type: string; + to: string; + calls: unknown[]; +} + +/** Asserts that `trace` is the callTracer frame of a call to `MAIN_ADDRESS`. */ +function assertMainCallTracerFrame(trace: CallTracerFrame): void { + assert.equal(trace.type, "CALL"); + assert.equal(trace.to, MAIN_ADDRESS); + assert.lengthOf(trace.calls, 3); + assert.notProperty(trace, "structLogs"); +} + type OptionalStructLogField = "memory" | "stack" | "storage"; function withoutFields( @@ -204,11 +306,11 @@ describe("Debug module", function () { }); describe("debug_traceTransaction", function () { - async function traceTransaction( + async function traceTransaction( provider: EthereumProvider, txHash: string, options?: object - ): Promise { + ): Promise { const params = options === undefined ? [txHash] : [txHash, options]; return provider.send("debug_traceTransaction", params); } @@ -222,25 +324,23 @@ describe("Debug module", function () { it("returns an empty trace for value transfers", async function () { const txHash = await sendTransaction(this.provider, { - to: DEFAULT_ACCOUNTS_ADDRESSES[1], + to: RECIPIENT, }); - assert.deepEqual(await traceTransaction(this.provider, txHash), { - gas: 21_000, - failed: false, - returnValue: "", - structLogs: [], - }); + assert.deepEqual( + await traceTransaction(this.provider, txHash), + VALUE_TRANSFER_TRACE + ); }); it("matches Hardhat 2's trace of a contract call", async function () { const contractAddress = await deployContract( this.provider, `0x${EXAMPLE_CONTRACT.bytecode.object}`, - DEFAULT_ACCOUNTS_ADDRESSES[1] + RECIPIENT ); const txHash = await sendTransaction(this.provider, { - from: DEFAULT_ACCOUNTS_ADDRESSES[1], + from: RECIPIENT, to: contractAddress, data: `${EXAMPLE_CONTRACT.selectors.modifiesState}000000000000000000000000000000000000000000000000000000000000000a`, }); @@ -254,7 +354,7 @@ describe("Debug module", function () { const SCENARIOS: Array<{ scenario: ScenarioName; description: string; - tx: { from?: string; to: string }; + tx: { from?: string; to?: string; data?: string }; }> = [ { scenario: "elongatedMemory", @@ -299,6 +399,26 @@ describe("Debug module", function () { description: "a reverted transaction", tx: { to: REVERT_ADDRESS }, }, + { + scenario: "precompileCall", + description: "storage around a CALL to a precompile", + tx: { to: PRECOMPILE_CALLER_ADDRESS }, + }, + { + scenario: "codelessCall", + description: "storage around a CALL to an account without code", + tx: { to: CODELESS_CALLER_ADDRESS }, + }, + { + scenario: "creation", + description: "storage written by a contract-creation transaction", + tx: { data: STORAGE_INIT_CODE }, + }, + { + scenario: "singleCall", + description: "a single nested call", + tx: { to: SINGLE_CALL_ADDRESS }, + }, ]; for (const { scenario, description, tx } of SCENARIOS) { @@ -351,6 +471,19 @@ describe("Debug module", function () { }); } + it("keeps storage per frame with disableStack when each contract is entered once", async function () { + const txHash = await sendTransaction(this.provider, { + to: SINGLE_CALL_ADDRESS, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { + disableStack: true, + }), + withoutFields(HARDHAT_2_TRACES.singleCall, ["stack"]) + ); + }); + it("captures memory with disableMemory set to false", async function () { const txHash = await sendTransaction(this.provider, { to: MAIN_ADDRESS, @@ -475,25 +608,71 @@ describe("Debug module", function () { ); }); - it("returns geth's output for built-in tracers", async function () { + it("returns geth's callTracer output", async function () { const txHash = await sendTransaction(this.provider, { to: MAIN_ADDRESS, }); - const trace: any = await traceTransaction(this.provider, txHash, { - tracer: "callTracer", + const trace = await traceTransaction( + this.provider, + txHash, + { tracer: CALL_TRACER } + ); + + assertMainCallTracerFrame(trace); + }); + + it("rejects an unsupported tracer", async function () { + const txHash = await sendTransaction(this.provider, { + to: MAIN_ADDRESS, + }); + + await assert.isRejected( + traceTransaction(this.provider, txHash, { + tracer: UNSUPPORTED_TRACER, + }), + UNSUPPORTED_TRACER_ERROR + ); + }); + + it("returns a failed trace without steps when a precompile call runs out of gas", async function () { + const txHash = await sendTransaction(this.provider, { + to: ECRECOVER_PRECOMPILE_ADDRESS, + gas: numberToRpcQuantity(INTRINSIC_GAS), }); - assert.equal(trace.type, "CALL"); - assert.equal(trace.to, MAIN_ADDRESS); - assert.lengthOf(trace.calls, 3); - assert.notProperty(trace, "structLogs"); + assert.deepEqual(await traceTransaction(this.provider, txHash), { + ...VALUE_TRANSFER_TRACE, + failed: true, + }); }); }); describe("debug_traceCall", function () { const CALL = { from: SENDER, to: STORAGE_ADDRESS, gas: TX_GAS }; + const TRACE_CALL_SCENARIOS: Array<{ + scenario: ScenarioName; + description: string; + call: { to?: string; data?: string }; + }> = [ + { + scenario: "reentrancyCall", + description: "storage written by a reentrant call", + call: { to: REENTRANCY_ADDRESS }, + }, + { + scenario: "creationCall", + description: "a call without a recipient", + call: { to: undefined, data: STORAGE_INIT_CODE }, + }, + { + scenario: "revertCall", + description: "a reverted call", + call: { to: REVERT_ADDRESS }, + }, + ]; + it("matches Hardhat 2's trace", async function () { assert.deepEqual( await this.provider.send("debug_traceCall", [CALL, "latest"]), @@ -501,13 +680,29 @@ describe("Debug module", function () { ); }); - it("matches Hardhat 2's trace of storage written by a reentrant call", async function () { + for (const { + scenario, + description, + call: callFields, + } of TRACE_CALL_SCENARIOS) { + it(`matches Hardhat 2's trace of ${description}`, async function () { + assert.deepEqual( + await this.provider.send("debug_traceCall", [ + { ...CALL, ...callFields }, + "latest", + ]), + HARDHAT_2_TRACES[scenario] + ); + }); + } + + it("returns an empty trace for value transfers", async function () { assert.deepEqual( await this.provider.send("debug_traceCall", [ - { ...CALL, to: REENTRANCY_ADDRESS }, + { ...CALL, to: RECIPIENT, value: TRANSFER_VALUE }, "latest", ]), - HARDHAT_2_TRACES.reentrancyCall + VALUE_TRANSFER_TRACE ); }); @@ -534,6 +729,26 @@ describe("Debug module", function () { ]) ); }); + + it("returns geth's callTracer output", async function () { + const trace: CallTracerFrame = await this.provider.send( + "debug_traceCall", + [{ ...CALL, to: MAIN_ADDRESS }, "latest", { tracer: CALL_TRACER }] + ); + + assertMainCallTracerFrame(trace); + }); + + it("rejects an unsupported tracer", async function () { + await assert.isRejected( + this.provider.send("debug_traceCall", [ + CALL, + "latest", + { tracer: UNSUPPORTED_TRACER }, + ]), + UNSUPPORTED_TRACER_ERROR + ); + }); }); }); }); diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json b/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json index f8a7c6b4f94..8076c5a9b94 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json @@ -6044,5 +6044,1277 @@ } } ] + }, + "precompileCall": { + "failed": false, + "gas": 43363, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956894, + "gasCost": 3, + "op": "PUSH3", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956891, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956888, + "gasCost": 6, + "op": "MSTORE", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956882, + "gasCost": 3, + "op": "PUSH1", + "pc": 12, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956879, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956876, + "gasCost": 3, + "op": "PUSH1", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956873, + "gasCost": 3, + "op": "PUSH1", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956870, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956867, + "gasCost": 3, + "op": "PUSH20", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956864, + "gasCost": 2, + "op": "GAS", + "pc": 43, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000004" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956862, + "gasCost": 941913, + "op": "CALL", + "pc": 44, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000004", + "00000000000000000000000000000000000000000000000000000000000e99be" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956744, + "gasCost": 2, + "op": "POP", + "pc": 45, + "memory": [ + "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956742, + "gasCost": 3, + "op": "PUSH1", + "pc": 46, + "memory": [ + "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956739, + "gasCost": 100, + "op": "SLOAD", + "pc": 48, + "memory": [ + "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956639, + "gasCost": 2, + "op": "POP", + "pc": 49, + "memory": [ + "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956637, + "gasCost": 0, + "op": "STOP", + "pc": 50, + "memory": [ + "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + } + ] + }, + "codelessCall": { + "failed": false, + "gas": 45845, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956894, + "gasCost": 3, + "op": "PUSH3", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956891, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956888, + "gasCost": 6, + "op": "MSTORE", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956882, + "gasCost": 3, + "op": "PUSH1", + "pc": 12, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956879, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956876, + "gasCost": 3, + "op": "PUSH1", + "pc": 16, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956873, + "gasCost": 3, + "op": "PUSH1", + "pc": 18, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956870, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956867, + "gasCost": 3, + "op": "PUSH20", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956864, + "gasCost": 2, + "op": "GAS", + "pc": 43, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000115" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 956862, + "gasCost": 941952, + "op": "CALL", + "pc": 44, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000003", + "000000000000000000000000000000000000000000000000000000000000001d", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000115", + "00000000000000000000000000000000000000000000000000000000000e99be" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 954262, + "gasCost": 2, + "op": "POP", + "pc": 45, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 954260, + "gasCost": 3, + "op": "PUSH1", + "pc": 46, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 954257, + "gasCost": 100, + "op": "SLOAD", + "pc": 48, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 954157, + "gasCost": 2, + "op": "POP", + "pc": 49, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 954155, + "gasCost": 0, + "op": "STOP", + "pc": 50, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000aabbcc" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + } + ] + }, + "creation": { + "failed": false, + "gas": 75337, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 946874, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 946871, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 946868, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924768, + "gasCost": 3, + "op": "PUSH1", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924765, + "gasCost": 100, + "op": "SLOAD", + "pc": 7, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924665, + "gasCost": 2, + "op": "POP", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924663, + "gasCost": 0, + "op": "STOP", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + } + ] + }, + "creationCall": { + "failed": false, + "gas": 75337, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 946874, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 946871, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 946868, + "gasCost": 22100, + "op": "SSTORE", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924768, + "gasCost": 3, + "op": "PUSH1", + "pc": 5, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924765, + "gasCost": 100, + "op": "SLOAD", + "pc": 7, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924665, + "gasCost": 2, + "op": "POP", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 924663, + "gasCost": 0, + "op": "STOP", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + } + ] + }, + "revertCall": { + "failed": true, + "gas": 21018, + "returnValue": "0x00000000000000000000000000000000000000000000000000000000000000aa", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 6, + "op": "MSTORE", + "pc": 4, + "memory": [], + "stack": [ + "00000000000000000000000000000000000000000000000000000000000000aa", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 5, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH1", + "pc": 7, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 0, + "op": "REVERT", + "pc": 9, + "memory": [ + "00000000000000000000000000000000000000000000000000000000000000aa" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + } + ] + }, + "singleCall": { + "failed": false, + "gas": 67961, + "returnValue": "", + "structLogs": [ + { + "depth": 1, + "gas": 979000, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 1, + "gas": 978997, + "gasCost": 3, + "op": "PUSH1", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978994, + "gasCost": 3, + "op": "PUSH1", + "pc": 4, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978991, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978988, + "gasCost": 3, + "op": "PUSH1", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978985, + "gasCost": 3, + "op": "PUSH20", + "pc": 10, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978982, + "gasCost": 2, + "op": "GAS", + "pc": 31, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 978980, + "gasCost": 963725, + "op": "CALL", + "pc": 32, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000105", + "00000000000000000000000000000000000000000000000000000000000ef024" + ], + "storage": {} + }, + { + "depth": 2, + "gas": 961122, + "gasCost": 3, + "op": "PUSH1", + "pc": 0, + "memory": [], + "stack": [], + "storage": {} + }, + { + "depth": 2, + "gas": 961119, + "gasCost": 2100, + "op": "SLOAD", + "pc": 2, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959019, + "gasCost": 3, + "op": "PUSH1", + "pc": 3, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959016, + "gasCost": 3, + "op": "ADD", + "pc": 5, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959013, + "gasCost": 3, + "op": "PUSH1", + "pc": 6, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" + } + }, + { + "depth": 2, + "gas": 959010, + "gasCost": 20000, + "op": "SSTORE", + "pc": 8, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 939010, + "gasCost": 3, + "op": "PUSH1", + "pc": 9, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 939007, + "gasCost": 3, + "op": "PUSH1", + "pc": 11, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 939004, + "gasCost": 22100, + "op": "SSTORE", + "pc": 13, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916904, + "gasCost": 3, + "op": "PUSH1", + "pc": 14, + "memory": [], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916901, + "gasCost": 100, + "op": "SLOAD", + "pc": 16, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916801, + "gasCost": 3, + "op": "PUSH1", + "pc": 17, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916798, + "gasCost": 6, + "op": "MSTORE", + "pc": 19, + "memory": [], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916792, + "gasCost": 3, + "op": "PUSH1", + "pc": 20, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916789, + "gasCost": 3, + "op": "PUSH1", + "pc": 22, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 2, + "gas": 916786, + "gasCost": 0, + "op": "RETURN", + "pc": 24, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000020", + "0000000000000000000000000000000000000000000000000000000000000000" + ], + "storage": { + "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", + "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" + } + }, + { + "depth": 1, + "gas": 932041, + "gasCost": 2, + "op": "POP", + "pc": 33, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "storage": {} + }, + { + "depth": 1, + "gas": 932039, + "gasCost": 0, + "op": "STOP", + "pc": 34, + "memory": [ + "0000000000000000000000000000000000000000000000000000000000000001" + ], + "stack": [], + "storage": {} + } + ] } } From b7d610cbb67987dd9004d886b5995f1caa891730 Mon Sep 17 00:00:00 2001 From: Wodann Date: Wed, 28 Oct 2026 17:49:08 +0000 Subject: [PATCH 28/39] test: remove debug trace tests that only check EDR behaviour Four debug trace checks only exercised behaviour that EDR produces and Hardhat 2 forwards unchanged. They covered: - an unsupported tracer in debug_traceTransaction and debug_traceCall - the name of an undefined opcode - a STOP as the first step EDR pins that behaviour with unit tests of its `edr_provider` crate, in crates/edr_provider/src/requests/debug.rs on its `test/debug-trace-contract` branch. The empty-params check stays because Hardhat 2 only leaves empty params untouched by its own guard. Hardhat 2 keeps only the tests of its own output format and option handling. --- .../hardhat-network/provider/debug-trace.ts | 69 +++---------------- 1 file changed, 8 insertions(+), 61 deletions(-) diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts index e5e2c05f281..bf709b32ba4 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts @@ -54,9 +54,6 @@ const INTRINSIC_GAS = 21_000; const TRANSFER_VALUE = numberToRpcQuantity(1); const CALL_TRACER = "callTracer"; -const UNSUPPORTED_TRACER = "unsupportedTracer"; -/** EDR treats an unknown tracer name as JavaScript code. */ -const UNSUPPORTED_TRACER_ERROR = "JS Tracer is not enabled"; /** Hardhat 2's trace of a value transfer. */ const VALUE_TRANSFER_TRACE: RpcDebugTraceOutput = { @@ -76,13 +73,11 @@ const MAIN_ADDRESS = address(0x107); const REVERT_ADDRESS = address(0x108); const CREATE_ADDRESS = address(0x10a); const REENTRANCY_ADDRESS = address(0x10b); -const STOP_ADDRESS = address(0x10c); const STATICCALL_ADDRESS = address(0x10d); const READER_ADDRESS = address(0x10e); const CALLCODE_ADDRESS = address(0x10f); const CREATE_AND_CALL_ADDRESS = address(0x110); const INFINITE_LOOP_ADDRESS = address(0x111); -const UNKNOWN_OPCODE_ADDRESS = address(0x112); const PRECOMPILE_CALLER_ADDRESS = address(0x113); const CODELESS_CALLER_ADDRESS = address(0x114); /** An account that never gets code. */ @@ -228,11 +223,8 @@ const CODE: Record = { ].join(""), // JUMPDEST PUSH1 0 JUMP [INFINITE_LOOP_ADDRESS]: "0x5b600056", - // An undefined opcode. - [UNKNOWN_OPCODE_ADDRESS]: "0x0c", // PUSH0 PUSH0 MSTORE PUSH0 [ELONGATED_MEMORY_ADDRESS]: "0x5F5F525F", - [STOP_ADDRESS]: "0x00", // Sets slot 0, calls the identity precompile and loads slot 0. [PRECOMPILE_CALLER_ADDRESS]: callBetweenStorageAccesses( IDENTITY_PRECOMPILE_ADDRESS @@ -315,7 +307,7 @@ describe("Debug module", function () { return provider.send("debug_traceTransaction", params); } - it("reports a missing transaction hash", async function () { + it("forwards an empty params list to EDR unchanged", async function () { await assert.isRejected( this.provider.send("debug_traceTransaction", []), "invalid length 0" @@ -580,34 +572,6 @@ describe("Debug module", function () { ); }); - // EDR's output lacks the opcode byte that Hardhat 2.29.1 put in the - // name. - it("names an undefined opcode Unknown, unlike Hardhat 2.29.1", async function () { - const txHash = await sendTransaction(this.provider, { - to: UNKNOWN_OPCODE_ADDRESS, - }); - - const trace = await traceTransaction(this.provider, txHash); - - assert.deepEqual( - trace.structLogs.map((log) => [log.op, log.error]), - [["Unknown", { message: "Some(OpcodeNotFound)" }]] - ); - }); - - it("keeps a STOP as the first step", async function () { - const txHash = await sendTransaction(this.provider, { - to: STOP_ADDRESS, - }); - - const trace = await traceTransaction(this.provider, txHash); - - assert.deepEqual( - trace.structLogs.map((log) => log.op), - ["STOP"] - ); - }); - it("returns geth's callTracer output", async function () { const txHash = await sendTransaction(this.provider, { to: MAIN_ADDRESS, @@ -622,19 +586,6 @@ describe("Debug module", function () { assertMainCallTracerFrame(trace); }); - it("rejects an unsupported tracer", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - await assert.isRejected( - traceTransaction(this.provider, txHash, { - tracer: UNSUPPORTED_TRACER, - }), - UNSUPPORTED_TRACER_ERROR - ); - }); - it("returns a failed trace without steps when a precompile call runs out of gas", async function () { const txHash = await sendTransaction(this.provider, { to: ECRECOVER_PRECOMPILE_ADDRESS, @@ -673,6 +624,13 @@ describe("Debug module", function () { }, ]; + it("forwards an empty params list to EDR unchanged", async function () { + await assert.isRejected( + this.provider.send("debug_traceCall", []), + "invalid length 0" + ); + }); + it("matches Hardhat 2's trace", async function () { assert.deepEqual( await this.provider.send("debug_traceCall", [CALL, "latest"]), @@ -738,17 +696,6 @@ describe("Debug module", function () { assertMainCallTracerFrame(trace); }); - - it("rejects an unsupported tracer", async function () { - await assert.isRejected( - this.provider.send("debug_traceCall", [ - CALL, - "latest", - { tracer: UNSUPPORTED_TRACER }, - ]), - UNSUPPORTED_TRACER_ERROR - ); - }); }); }); }); From 7b7972dbc6cd5631c269ea86cf7a51e8b33cfef2 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:04:15 +0000 Subject: [PATCH 29/39] fix: reject invalid mining.interval ranges at config load EDR rejects a `mining.interval` range below 1 or with min above max only when the provider is created. Hardhat then reports it as an unexpected error that omits the config key. Validate the range at config load. The error names `networks.hardhat.mining.interval` and the offending range. --- .../interval-mining-range-validation.md | 5 ++- .../internal/core/config/config-validation.ts | 36 ++++++++++++++++++ .../internal/core/config/config-validation.ts | 38 +++++++++++++++++++ 3 files changed, 77 insertions(+), 2 deletions(-) diff --git a/.changeset/interval-mining-range-validation.md b/.changeset/interval-mining-range-validation.md index 7a6fe8eed77..93fc41b88d0 100644 --- a/.changeset/interval-mining-range-validation.md +++ b/.changeset/interval-mining-range-validation.md @@ -2,6 +2,7 @@ "hardhat": minor --- -Fixed interval mining accepting a `mining.interval` range that it could not honour. A range must now satisfy `1 <= min <= max`. An invalid range is rejected when the provider is created and when `evm_setIntervalMining` is called. +Fixed interval mining accepting a `mining.interval` range that it could not honour: -BREAKING CHANGE: `[0, 0]` and `[0, N]` ranges are no longer accepted. Use a range with a minimum of at least `1`, such as `[1, N]`. Set `mining.interval` to `0` to disable interval mining. +- A range must now satisfy `1 <= min <= max`. An invalid range is rejected when the config is loaded, when the provider is created and when `evm_setIntervalMining` is called. The config error names `networks.hardhat.mining.interval` and the offending range. +- BREAKING CHANGE: `[0, 0]` and `[0, N]` ranges are no longer accepted. Use a range with a minimum of at least `1`, such as `[1, N]`, instead. Set `mining.interval` to `0` to disable interval mining. diff --git a/packages/hardhat-core/src/internal/core/config/config-validation.ts b/packages/hardhat-core/src/internal/core/config/config-validation.ts index 0838235dcbf..ddfd6b95c80 100644 --- a/packages/hardhat-core/src/internal/core/config/config-validation.ts +++ b/packages/hardhat-core/src/internal/core/config/config-validation.ts @@ -64,6 +64,36 @@ function getErrorMessage(path: string, value: any, expectedType: string) { )} for ${path} - Expected a value of type ${expectedType}.`; } +/** + * The smallest minimum of a `mining.interval` range, in milliseconds, that + * EDR accepts. + */ +const MIN_MINING_INTERVAL_RANGE_START = 1; + +function validateMiningIntervalRange( + interval: unknown, + network: string, + errors: string[] +) { + if ( + !Array.isArray(interval) || + interval.length !== 2 || + typeof interval[0] !== "number" || + typeof interval[1] !== "number" + ) { + return; + } + + const [min, max] = interval; + if (min < MIN_MINING_INTERVAL_RANGE_START || min > max) { + errors.push( + `Invalid value ${stringify( + interval + )} for HardhatConfig.networks.${network}.mining.interval - Expected a range [min, max] with ${MIN_MINING_INTERVAL_RANGE_START} <= min <= max.` + ); + } +} + function getPrivateKeyError(index: number, network: string, message: string) { return `Invalid account: #${index} for network: ${network} - ${message}`; } @@ -460,6 +490,12 @@ export function getValidationErrors(config: any): string[] { ); } + validateMiningIntervalRange( + hardhatNetwork.mining?.interval, + HARDHAT_NETWORK_NAME, + errors + ); + const hardfork = hardhatNetwork.hardfork ?? defaultHardhatNetworkParams.hardfork; if (hardforkGte(hardfork, HardforkName.LONDON)) { diff --git a/packages/hardhat-core/test/internal/core/config/config-validation.ts b/packages/hardhat-core/test/internal/core/config/config-validation.ts index fdc46e5627b..2523be628da 100644 --- a/packages/hardhat-core/test/internal/core/config/config-validation.ts +++ b/packages/hardhat-core/test/internal/core/config/config-validation.ts @@ -1109,6 +1109,44 @@ describe("Config validation", function () { }); }); + describe("Mining interval range", function () { + const INTERVAL_PATH = `HardhatConfig.networks.${HARDHAT_NETWORK_NAME}.mining.interval`; + + function validateInterval(interval: [number, number]) { + validateConfig({ + networks: { + [HARDHAT_NETWORK_NAME]: { + mining: { interval }, + }, + }, + }); + } + + it("Should reject a range with a minimum of 0", function () { + expectHardhatError( + () => validateInterval([0, 5]), + ERRORS.GENERAL.INVALID_CONFIG, + `Invalid value [0,5] for ${INTERVAL_PATH}` + ); + }); + + it("Should reject a range with a minimum above its maximum", function () { + expectHardhatError( + () => validateInterval([5, 2]), + ERRORS.GENERAL.INVALID_CONFIG, + `Invalid value [5,2] for ${INTERVAL_PATH}` + ); + }); + + it("Should accept a range with equal minimum and maximum of 1", function () { + validateInterval([1, 1]); + }); + + it("Should accept a range with a minimum of 1", function () { + validateInterval([1, 5]); + }); + }); + describe("Hardhat network's coinbase", function () { it("Should fail if it's not a valid address", function () { expectHardhatError( From b8b25e1aef370f24f91715ea5c770e00cc3c35a1 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:05:21 +0000 Subject: [PATCH 30/39] refactor: drop the unused hardfork conversion `edrSpecIdToEthereumHardfork` has no caller in the monorepo. --- .../hardhat-network/provider/utils/convertToEdr.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index c4ffde74063..bdcde0a6977 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -1,5 +1,4 @@ import type { - L1Hardfork, MineOrdering, IntervalRange, TracingMessage, @@ -10,7 +9,6 @@ import type { import { Address } from "@ethereumjs/util"; import { requireNapiRsModule } from "../../../../common/napi-rs"; -import { HardforkName } from "../../../util/hardforks"; import { IntervalMiningConfig, MempoolOrder } from "../node-types"; import { RpcDebugTraceOutput, RpcStructLog } from "../output"; import { @@ -21,15 +19,6 @@ import { /* eslint-disable @nomicfoundation/hardhat-internal-rules/only-hardhat-error */ -export function edrSpecIdToEthereumHardfork(specId: L1Hardfork): HardforkName { - const { l1HardforkToString } = requireNapiRsModule( - "@nomicfoundation/edr" - ) as typeof import("@nomicfoundation/edr"); - - // EDR's hardfork names match Hardhat's, so no conversion is needed. - return l1HardforkToString(specId) as HardforkName; -} - export function ethereumjsIntervalMiningConfigToEdr( config: IntervalMiningConfig ): bigint | IntervalRange | undefined { From 07a25a6b09ee162f6003f21f237b8e40fdc0167c Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:06:38 +0000 Subject: [PATCH 31/39] fix: log a failed root address lookup in debug traces `debug_traceTransaction` looks up the traced transaction to find its recipient. An error response or a missing transaction fell back to a placeholder storage context without a trace in the debug log. Both cases are now logged with the hash and the reason. The request now reads the EDR provider once and uses it for both the trace and the lookup. A concurrent `hardhat_reset` can no longer route the lookup to a different provider than the trace. --- .../hardhat-network/provider/provider.ts | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) 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 d2a18d42563..8991a9b5bfd 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -393,8 +393,9 @@ export class EdrProviderWrapper : params, }); + const provider = this._provider; const responseObject: Response = - await this._provider.handleRequest(stringifiedArgs); + await provider.handleRequest(stringifiedArgs); let response; if (typeof responseObject.data === "string") { @@ -511,6 +512,7 @@ export class EdrProviderWrapper return clientVersion(response.result); } else if (isDebugTraceMethod(args.method)) { return this._debugTraceResultToHardhat2( + provider, args.method, params, response.result @@ -521,6 +523,7 @@ export class EdrProviderWrapper } private async _debugTraceResultToHardhat2( + provider: EdrProviderT, method: DebugTraceMethod, params: any[], result: any @@ -532,7 +535,7 @@ export class EdrProviderWrapper const storageEnabled = options?.disableStorage !== true; const rootAddress = storageEnabled - ? await this._debugTraceRootAddress(method, params) + ? await this._debugTraceRootAddress(provider, method, params) : undefined; return edrRpcDebugTraceToHardhat2(result, storageEnabled, rootAddress); @@ -540,6 +543,7 @@ export class EdrProviderWrapper /** Returns the address whose code the traced transaction runs. */ private async _debugTraceRootAddress( + provider: EdrProviderT, method: DebugTraceMethod, params: any[] ): Promise { @@ -547,10 +551,11 @@ export class EdrProviderWrapper return params[0]?.to ?? undefined; } - const responseObject = await this._provider.handleRequest( + const transactionHash = params[0]; + const responseObject = await provider.handleRequest( JSON.stringify({ method: "eth_getTransactionByHash", - params: [params[0]], + params: [transactionHash], }) ); const response = @@ -558,7 +563,24 @@ export class EdrProviderWrapper ? JSON.parse(responseObject.data) : responseObject.data; - return response.result?.to ?? undefined; + if (isErrorResponse(response)) { + log( + "Failed to look up the root address of transaction %s, so its trace uses a placeholder storage context: %O", + transactionHash, + response.error.message + ); + return undefined; + } + + if (response.result === null || response.result === undefined) { + log( + "Transaction %s was not found, so its trace uses a placeholder storage context", + transactionHash + ); + return undefined; + } + + return response.result.to ?? undefined; } private async _addCompilationResult( From 9fe775beef22158ea19f8d99d6a7e45ec70f1a21 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:07:38 +0000 Subject: [PATCH 32/39] refactor: compare the created address through the shared helper The storage tracker compared the created address with `BigInt`, which needs a `0x` prefix. It now converts the stack item with `stackItemToAddress`, like its neighbours, and compares it with a named constant. The provider's cheatcode cast comment now states only its constraint. A comment that the surrounding code already shows is removed. --- .../hardhat-network/provider/provider.ts | 9 ++------ .../provider/utils/convertToEdr.ts | 21 ++++++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) 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 8991a9b5bfd..07fb0b8d78f 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -352,8 +352,6 @@ export class EdrProviderWrapper genesisBlockTime ); - // Assigned after construction, which is why the callback above reaches the - // wrapper through a binding rather than capturing it. wrapperWeakRef = new WeakRef(wrapper); return wrapper; @@ -461,11 +459,8 @@ export class EdrProviderWrapper if (stackTrace?.kind === "StackTrace") { error = encodeSolidityStackTrace( response.error.message, - // EDR's `SolidityStackTraceEntry` union includes - // `CheatcodeErrorStackTraceEntry`, which Hardhat's local copy - // doesn't know about. Cheatcodes only fire from solidity-test - // runs, never from the network-provider path; the cast is safe - // at runtime. + // Cheatcode entries only occur in Solidity tests, never in + // provider requests, so the cast cannot see one. stackTrace.entries as SolidityStackTrace ); // Pass data and transaction hash from the original error diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts index bdcde0a6977..e09a5930464 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/utils/convertToEdr.ts @@ -154,6 +154,12 @@ const HEX_PREFIX = "0x"; const WORD_HEX_LENGTH = 64; const ADDRESS_HEX_LENGTH = 40; +/** + * The address that a failed CREATE or CREATE2 pushes, in the unprefixed form + * that `stackItemToAddress` returns. + */ +const FAILED_CREATE_ADDRESS = "0".repeat(ADDRESS_HEX_LENGTH); + const CALL_OPCODES_WITH_OWN_STORAGE = new Set(["CALL", "STATICCALL"]); const CALL_OPCODES_WITH_CALLER_STORAGE = new Set(["DELEGATECALL", "CALLCODE"]); const CREATE_OPCODES = new Set(["CREATE", "CREATE2"]); @@ -261,18 +267,19 @@ class StorageTracker { createContext: string, stack: string[] | undefined ): void { - const createdAddress = stack?.[stack.length - 1]; + const createdStackItem = stack?.[stack.length - 1]; const storage = this._storageByContext.get(createContext); - if ( - createdAddress === undefined || - BigInt(createdAddress) === 0n || - storage === undefined - ) { + if (createdStackItem === undefined || storage === undefined) { + return; + } + + const createdAddress = stackItemToAddress(createdStackItem); + if (createdAddress === FAILED_CREATE_ADDRESS) { return; } this._storageByContext.delete(createContext); - this._storageByContext.set(stackItemToAddress(createdAddress), storage); + this._storageByContext.set(createdAddress, storage); } private _childContext( From ce3ebcb601ab0947965bd6ba5952b595ab8790ba Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:10:57 +0000 Subject: [PATCH 33/39] test: pin the storage context of each frame with disableStack No `disableStack` scenario entered two frames. A tracker that gave every unknown frame the same storage context therefore passed the suite. The new test calls two contracts and checks that the second frame does not see the first frame's slots. The out-of-gas test no longer pins EDR's error text, which EDR's own tests cover. --- .../hardhat-network/provider/debug-trace.ts | 70 +++++++++++++++++-- 1 file changed, 63 insertions(+), 7 deletions(-) diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts index bf709b32ba4..9357cd90590 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts @@ -83,6 +83,7 @@ const CODELESS_CALLER_ADDRESS = address(0x114); /** An account that never gets code. */ const CODELESS_ADDRESS = address(0x115); const SINGLE_CALL_ADDRESS = address(0x116); +const STORAGE_THEN_READER_ADDRESS = address(0x117); const ECRECOVER_PRECOMPILE_ADDRESS = address(0x1); const IDENTITY_PRECOMPILE_ADDRESS = address(0x4); const ELONGATED_MEMORY_ADDRESS = "0x1234567890123456789012345678901234567890"; @@ -90,6 +91,12 @@ const ELONGATED_MEMORY_ADDRESS = "0x1234567890123456789012345678901234567890"; /** The size of an EVM memory word in bytes. */ const WORD_SIZE = 32; +/** The depth of the steps in a call made by the transaction's recipient. */ +const NESTED_CALL_DEPTH = 2; + +/** Storage slot 0 as Hardhat 2 formats a storage key. */ +const SLOT_0_KEY = "0".repeat(2 * WORD_SIZE); + function withoutPrefix(hex: string): string { return hex.slice(2); } @@ -233,6 +240,10 @@ const CODE: Record = { [CODELESS_CALLER_ADDRESS]: callBetweenStorageAccesses(CODELESS_ADDRESS), // Calls the storage contract once. [SINGLE_CALL_ADDRESS]: `0x${call(STORAGE_ADDRESS)}00`, + // Calls the storage contract, then the reader. + [STORAGE_THEN_READER_ADDRESS]: `0x${call(STORAGE_ADDRESS)}${call( + READER_ADDRESS + )}00`, }; async function setCode(provider: EthereumProvider): Promise { @@ -274,6 +285,31 @@ function assertMainCallTracerFrame(trace: CallTracerFrame): void { assert.notProperty(trace, "structLogs"); } +/** Splits the steps of nested calls into one list per call. */ +function nestedCallFrames(trace: RpcDebugTraceOutput): RpcStructLog[][] { + const frames: RpcStructLog[][] = []; + let previousDepth: number | undefined; + for (const log of trace.structLogs) { + if (log.depth === NESTED_CALL_DEPTH) { + if (previousDepth !== NESTED_CALL_DEPTH) { + frames.push([]); + } + frames[frames.length - 1].push(log); + } + previousDepth = log.depth; + } + return frames; +} + +/** Returns the steps of `frame` before its first SLOAD and the rest. */ +function splitAtFirstSload( + frame: RpcStructLog[] +): [RpcStructLog[], RpcStructLog[]] { + const sloadIndex = frame.findIndex((log) => log.op === "SLOAD"); + assert.notEqual(sloadIndex, -1, "the frame has no SLOAD"); + return [frame.slice(0, sloadIndex), frame.slice(sloadIndex)]; +} + type OptionalStructLogField = "memory" | "stack" | "storage"; function withoutFields( @@ -476,6 +512,28 @@ describe("Debug module", function () { ); }); + it("keeps the storage of each called contract apart with disableStack", async function () { + const txHash = await sendTransaction(this.provider, { + to: STORAGE_THEN_READER_ADDRESS, + }); + + const trace = await traceTransaction(this.provider, txHash, { + disableStack: true, + }); + + const [storageFrame, readerFrame] = nestedCallFrames(trace); + const [, storageStepsFromSload] = splitAtFirstSload(storageFrame); + const [readerStepsBeforeSload] = splitAtFirstSload(readerFrame); + + assert.isNotEmpty(readerStepsBeforeSload); + for (const log of readerStepsBeforeSload) { + assert.deepEqual(log.storage, {}); + } + for (const log of storageStepsFromSload) { + assert.property(log.storage, SLOT_0_KEY); + } + }); + it("captures memory with disableMemory set to false", async function () { const txHash = await sendTransaction(this.provider, { to: MAIN_ADDRESS, @@ -554,7 +612,6 @@ describe("Debug module", function () { ); }); - // Unlike Hardhat 2.29.1, a halting step carries an error. it("adds an error to an out-of-gas step, unlike Hardhat 2.29.1", async function () { const txHash = await sendTransaction(this.provider, { to: INFINITE_LOOP_ADDRESS, @@ -564,12 +621,11 @@ describe("Debug module", function () { const trace = await traceTransaction(this.provider, txHash); assert.isTrue(trace.failed); - assert.deepEqual( - trace.structLogs[trace.structLogs.length - 1].error, - { - message: "Some(OutOfGas)", - } - ); + const { error } = trace.structLogs[trace.structLogs.length - 1]; + assert.property(error, "message"); + const { message } = error as { message: unknown }; + assert.isString(message); + assert.isNotEmpty(message); }); it("returns geth's callTracer output", async function () { From bc16cdab842bd117225de2e6e94ae52cc2055add Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:11:51 +0000 Subject: [PATCH 34/39] test: port the VM event bridge test from EDR No test listened to the provider's `step`, `beforeMessage` or `afterMessage` events, which the EDR upgrade rewires. Port EDR's trace-event bridge test, which counts these events for a plain creation and for a creation that calls a precompile. --- .../provider/trace-event-bridge.ts | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 packages/hardhat-core/test/internal/hardhat-network/provider/trace-event-bridge.ts diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/trace-event-bridge.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/trace-event-bridge.ts new file mode 100644 index 00000000000..a80bb0a7f5d --- /dev/null +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/trace-event-bridge.ts @@ -0,0 +1,102 @@ +import { assert } from "chai"; + +import { numberToRpcQuantity } from "../../../../src/internal/core/jsonrpc/types/base-types"; +import { EIP1193Provider, EthereumProvider } from "../../../../types"; +import { DEFAULT_ACCOUNTS_ADDRESSES, PROVIDERS } from "../helpers/providers"; + +interface VmEventCounts { + steps: number; + beforeMessages: number; + afterMessages: number; +} + +const TX_GAS = numberToRpcQuantity(0x100000); +const SENDER = DEFAULT_ACCOUNTS_ADDRESSES[0]; + +/** Init code that runs PUSH1 1, PUSH1 2, PUSH1 3 and STOP. */ +const FOUR_STEP_INIT_CODE = "0x60016002600300"; + +/** The single message of `FOUR_STEP_INIT_CODE` and its four steps. */ +const FOUR_STEP_EVENT_COUNTS: VmEventCounts = { + steps: 4, + beforeMessages: 1, + afterMessages: 1, +}; + +/** + * Init code that pushes five zeros as the return and argument ranges and + * the value, then pushes the identity precompile's address and 0xffff gas. + * It then runs CALL and STOP. + */ +const IDENTITY_PRECOMPILE_CALL_INIT_CODE = + "0x60006000600060006000600461fffff100"; + +/** + * The creation message and the precompile call message. A precompile runs no + * steps, so all nine steps belong to the init code. + */ +const IDENTITY_PRECOMPILE_CALL_EVENT_COUNTS: VmEventCounts = { + steps: 9, + beforeMessages: 2, + afterMessages: 2, +}; + +async function sendTransactionCountingVmEvents( + hardhatNetworkProvider: EIP1193Provider, + provider: EthereumProvider, + data: string +): Promise { + const counts: VmEventCounts = { + steps: 0, + beforeMessages: 0, + afterMessages: 0, + }; + const vmEvents = (hardhatNetworkProvider as any)._node._vm.evm.events; + vmEvents.on("step", () => { + counts.steps += 1; + }); + vmEvents.on("beforeMessage", () => { + counts.beforeMessages += 1; + }); + vmEvents.on("afterMessage", () => { + counts.afterMessages += 1; + }); + + await provider.send("eth_sendTransaction", [ + { from: SENDER, data, gas: TX_GAS }, + ]); + + // The minimal VM emits through an AsyncEventEmitter, whose listeners run on + // a later tick. + await new Promise((resolve) => setImmediate(resolve)); + + return counts; +} + +describe("Trace-event bridge", function () { + PROVIDERS.forEach(({ name, useProvider }) => { + describe(`${name} provider`, function () { + useProvider(); + + it("emits step, beforeMessage and afterMessage events for a transaction", async function () { + const counts = await sendTransactionCountingVmEvents( + this.hardhatNetworkProvider, + this.provider, + FOUR_STEP_INIT_CODE + ); + + assert.deepEqual(counts, FOUR_STEP_EVENT_COUNTS); + }); + + it("emits beforeMessage and afterMessage events for a precompile call", async function () { + const counts = await sendTransactionCountingVmEvents( + this.hardhatNetworkProvider, + this.provider, + IDENTITY_PRECOMPILE_CALL_INIT_CODE + ); + + assert.deepEqual(counts, IDENTITY_PRECOMPILE_CALL_EVENT_COUNTS); + }); + }); + }); +}); From f0c43e40d5ef55989d72d97685a43cb9489689b7 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 29 Oct 2026 21:16:43 +0000 Subject: [PATCH 35/39] docs: revise the changesets of the EDR upgrade The debug trace changeset opened with a sentence that read as a non-change. It now lists each addition and difference as a bullet under a new file name. The Node 22 changeset now says what a Node 20 user sees and when Node 20 reached end of life. The genesis nonce and log timestamp changesets are minor, because one changes block hashes and the other adds a field. A new changeset records that a forking request failing on every retry no longer names its host or cause. --- .changeset/debug-trace-geth-format.md | 9 --------- .changeset/debug-trace-tracers-and-options.md | 15 +++++++++++++++ .changeset/fork-retry-error-message.md | 5 +++++ .changeset/genesis-system-account-nonce.md | 2 +- .changeset/log-block-timestamp.md | 2 +- .changeset/require-node-22.md | 4 +++- 6 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 .changeset/debug-trace-geth-format.md create mode 100644 .changeset/debug-trace-tracers-and-options.md create mode 100644 .changeset/fork-retry-error-message.md diff --git a/.changeset/debug-trace-geth-format.md b/.changeset/debug-trace-geth-format.md deleted file mode 100644 index aeb534615ff..00000000000 --- a/.changeset/debug-trace-geth-format.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"hardhat": minor ---- - -Kept the default tracer's Hardhat 2 format in `debug_traceTransaction` and `debug_traceCall`. Stack items, memory words, storage keys and storage values stay unprefixed and zero-padded. Memory is still captured unless `disableMemory` is set. Storage still appears on every step unless `disableStorage` is set. - -Added support for geth's built-in tracers, such as `callTracer` and `prestateTracer`. These tracers return geth's output unchanged. The new `enableMemory` option takes precedence over `disableMemory`. - -The default tracer output differs in a few places. A step that halts now has an `error` message that comes from EDR, so do not match on its exact text. An unknown opcode is now named `Unknown`. A `STOP` at the first step is no longer dropped, so traces can have one more step. Storage no longer shows slots of another contract after a warm `SLOAD`. When `disableStack` is set, storage values can be stale until the next `SLOAD` or `SSTORE`. diff --git a/.changeset/debug-trace-tracers-and-options.md b/.changeset/debug-trace-tracers-and-options.md new file mode 100644 index 00000000000..f33ec993461 --- /dev/null +++ b/.changeset/debug-trace-tracers-and-options.md @@ -0,0 +1,15 @@ +--- +"hardhat": minor +--- + +Updated `debug_traceTransaction` and `debug_traceCall`: + +- Added support for geth's built-in tracers, such as `callTracer` and `prestateTracer`, which return geth's output unchanged. +- Added the `enableMemory` and `enableReturnData` options to the default tracer. `enableMemory` takes precedence over `disableMemory`, and `enableReturnData` adds `returnData` to each step. +- Changed the default tracer output in a few places: + - A step that halts now has an `error` message that comes from EDR, so do not match on its exact text. + - An unknown opcode is now named `Unknown`. + - A `STOP` at the first step is no longer dropped, so traces can have one more step. + - Storage no longer shows slots of another contract after a warm `SLOAD`. + - When `disableStack` is set, storage values can be stale until the next `SLOAD` or `SSTORE`. + - With the default tracer and storage enabled, `debug_traceTransaction` now reads the traced transaction to find its recipient. That costs one remote request when the transaction is on a forked chain. diff --git a/.changeset/fork-retry-error-message.md b/.changeset/fork-retry-error-message.md new file mode 100644 index 00000000000..d1d1e6c7522 --- /dev/null +++ b/.changeset/fork-retry-error-message.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Changed the error of a forking request that fails on every retry. It now reads `Request failed after 9 retries` and no longer names the host or the cause, such as a DNS error. diff --git a/.changeset/genesis-system-account-nonce.md b/.changeset/genesis-system-account-nonce.md index 210c7acc448..f1a3af4e545 100644 --- a/.changeset/genesis-system-account-nonce.md +++ b/.changeset/genesis-system-account-nonce.md @@ -1,5 +1,5 @@ --- -"hardhat": patch +"hardhat": minor --- Fixed the EIP-4788 and EIP-2935 system accounts to have nonce `1` in the genesis state, matching their on-chain deployments. The genesis block hash of local Cancun or later networks therefore differs from previous Hardhat versions. The hashes of all later blocks change as well. diff --git a/.changeset/log-block-timestamp.md b/.changeset/log-block-timestamp.md index 520a954c640..57ea247df72 100644 --- a/.changeset/log-block-timestamp.md +++ b/.changeset/log-block-timestamp.md @@ -1,5 +1,5 @@ --- -"hardhat": patch +"hardhat": minor --- Added the `blockTimestamp` field to logs. Logs returned by `eth_getLogs`, `eth_getFilterLogs`, `eth_getFilterChanges` and `eth_subscribe("logs")` carry it, as do the logs in transaction receipts. When forking, the field is passed through from the remote node and is absent if the node does not serve it. diff --git a/.changeset/require-node-22.md b/.changeset/require-node-22.md index f1de420bc2c..b5a7af672b2 100644 --- a/.changeset/require-node-22.md +++ b/.changeset/require-node-22.md @@ -2,4 +2,6 @@ "hardhat": minor --- -Updated the minimal supported version of Node to v22, because EDR requires Node.js v22 or later. +Updated the minimal supported version of Node to v22, because EDR declares `engines.node >= 22`. Node 20 reached end of life on 2026-04-30. + +On Node 20, Hardhat prints its unsupported-version warning and keeps running. Hardhat's own `package.json` declares no `engines`, so installing it is not blocked. Package managers warn that `@nomicfoundation/edr` requires Node 22, and those that enforce `engines`, such as Yarn 1, refuse the install. EDR's loader has no Node version check, so EDR itself still loads on Node 20, but that combination is untested. From 1a6f11a302a5997983e1536d004339aae88b0d62 Mon Sep 17 00:00:00 2001 From: Wodann Date: Sat, 31 Oct 2026 01:54:25 +0000 Subject: [PATCH 36/39] fix: treat an empty tracer name as the default tracer The execution API spec says an absent or empty tracer selects the default struct logger. Hardhat 2 treated an empty tracer as a named tracer. It skipped the memory default and returned EDR's output unconverted. EDR 0.25.0 also rejected it as a JavaScript tracer. Drop an empty tracer from the options of debug_traceTransaction and debug_traceCall before they reach EDR. The conversion now reads the same normalised options. Reword the memory default comment so it holds for every EDR version. --- .changeset/debug-trace-tracers-and-options.md | 1 + .../hardhat-network/provider/provider.ts | 33 +++++++++++++++---- .../hardhat-network/provider/debug-trace.ts | 29 ++++++++++++++++ 3 files changed, 57 insertions(+), 6 deletions(-) diff --git a/.changeset/debug-trace-tracers-and-options.md b/.changeset/debug-trace-tracers-and-options.md index f33ec993461..8436dbf4f0e 100644 --- a/.changeset/debug-trace-tracers-and-options.md +++ b/.changeset/debug-trace-tracers-and-options.md @@ -5,6 +5,7 @@ Updated `debug_traceTransaction` and `debug_traceCall`: - Added support for geth's built-in tracers, such as `callTracer` and `prestateTracer`, which return geth's output unchanged. +- Fixed an empty `tracer` to select the default tracer, as the Ethereum execution API spec requires. - Added the `enableMemory` and `enableReturnData` options to the default tracer. `enableMemory` takes precedence over `disableMemory`, and `enableReturnData` adds `returnData` to each step. - Changed the default tracer output in a few places: - A step that halts now has an `error` message that comes from EDR, so do not match on its exact text. 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 07fb0b8d78f..7d6a6e74530 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -384,11 +384,15 @@ export class EdrProviderWrapper ); } + const requestParams = isDebugTraceMethod(args.method) + ? withHardhat2MemoryDefault( + args.method, + withoutEmptyTracer(args.method, params) + ) + : params; const stringifiedArgs = JSON.stringify({ method: args.method, - params: isDebugTraceMethod(args.method) - ? withHardhat2MemoryDefault(args.method, params) - : params, + params: requestParams, }); const provider = this._provider; @@ -509,7 +513,7 @@ export class EdrProviderWrapper return this._debugTraceResultToHardhat2( provider, args.method, - params, + requestParams, response.result ); } else { @@ -736,8 +740,25 @@ function usesDefaultTracer(options: any): boolean { } /** - * Sets `enableMemory` from `disableMemory` unless the options set it. EDR - * captures memory only if `enableMemory` is set and ignores `disableMemory`. + * Drops an empty `tracer`, which selects the default tracer per the execution + * API spec. Some EDR versions reject it as a JavaScript tracer. + */ +function withoutEmptyTracer(method: DebugTraceMethod, params: any[]): any[] { + const options = debugTraceOptions(method, params); + if (options?.tracer !== "") { + return params; + } + + const { tracer: _emptyTracer, ...optionsWithoutTracer } = options; + const paramsWithoutTracer = [...params]; + paramsWithoutTracer[DEBUG_TRACE_OPTIONS_INDEX[method]] = optionsWithoutTracer; + return paramsWithoutTracer; +} + +/** + * Sets `enableMemory` from `disableMemory` unless the options set it. Setting + * it here keeps the default independent of how an EDR version reads + * `disableMemory`. */ function withHardhat2MemoryDefault( method: DebugTraceMethod, diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts index 9357cd90590..66847f2551b 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts +++ b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts @@ -379,6 +379,24 @@ describe("Debug module", function () { ); }); + it("uses the default tracer with an empty tracer name", async function () { + const contractAddress = await deployContract( + this.provider, + `0x${EXAMPLE_CONTRACT.bytecode.object}`, + RECIPIENT + ); + const txHash = await sendTransaction(this.provider, { + from: RECIPIENT, + to: contractAddress, + data: `${EXAMPLE_CONTRACT.selectors.modifiesState}000000000000000000000000000000000000000000000000000000000000000a`, + }); + + assert.deepEqual( + await traceTransaction(this.provider, txHash, { tracer: "" }), + HARDHAT_2_TRACES.modifiesState + ); + }); + const SCENARIOS: Array<{ scenario: ScenarioName; description: string; @@ -720,6 +738,17 @@ describe("Debug module", function () { ); }); + it("uses the default tracer with an empty tracer name", async function () { + assert.deepEqual( + await this.provider.send("debug_traceCall", [ + CALL, + "latest", + { tracer: "" }, + ]), + HARDHAT_2_TRACES.traceCall + ); + }); + it("matches Hardhat 2's trace without a block tag", async function () { assert.deepEqual( await this.provider.send("debug_traceCall", [CALL]), From bc32b81670788e015b8a3ffec705a799a3249c76 Mon Sep 17 00:00:00 2001 From: Wodann Date: Fri, 6 Nov 2026 09:20:10 +0000 Subject: [PATCH 37/39] test: move the debug trace conversion suite to EDR The debug trace conversion tests and their Hardhat 2.29.1 recording now live in EDR's hardhat-tests directory, which runs the Hardhat 2 package against every EDR change in EDR's CI. Keeping a second copy here would drift from that one, so this removes it. Until Hardhat releases this conversion and EDR bumps its patched package to that release, EDR's suite exercises the copy of the conversion in EDR's Hardhat 2 patch rather than this source. --- .../hardhat-network/provider/debug-trace.ts | 787 -- .../fixture-debug-traces/hardhat-2.29.1.json | 7320 ----------------- 2 files changed, 8107 deletions(-) delete mode 100644 packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts delete mode 100644 packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts b/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts deleted file mode 100644 index 66847f2551b..00000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/debug-trace.ts +++ /dev/null @@ -1,787 +0,0 @@ -import { assert } from "chai"; -import fsExtra from "fs-extra"; -import _ from "lodash"; -import path from "path"; - -import { numberToRpcQuantity } from "../../../../src/internal/core/jsonrpc/types/base-types"; -import { - RpcDebugTraceOutput, - RpcStructLog, -} from "../../../../src/internal/hardhat-network/provider/output"; -import { EthereumProvider } from "../../../../types"; -import { EXAMPLE_CONTRACT } from "../helpers/contracts"; -import { DEFAULT_ACCOUNTS_ADDRESSES, PROVIDERS } from "../helpers/providers"; -import { deployContract } from "../helpers/transactions"; - -type ScenarioName = - | "modifiesState" - | "elongatedMemory" - | "storageContexts" - | "staticcall" - | "callcode" - | "reentrancy" - | "reentrancyCall" - | "create" - | "createAndCall" - | "revert" - | "traceCall" - | "precompileCall" - | "codelessCall" - | "creation" - | "creationCall" - | "revertCall" - | "singleCall"; - -/** - * Traces recorded with Hardhat 2.29.1 and EDR 0.12.0-next.23, the last - * release before EDR adopted geth's debug trace format. The recorder used - * `useProvider`'s defaults, so the shanghai hardfork and chain id 123. The - * gas values depend on them. - */ -const HARDHAT_2_TRACES: Record = - fsExtra.readJsonSync( - path.join(__dirname, "fixture-debug-traces", "hardhat-2.29.1.json") - ); - -const TX_GAS = numberToRpcQuantity(1_000_000); -const SENDER = DEFAULT_ACCOUNTS_ADDRESSES[0]; -const RECIPIENT = DEFAULT_ACCOUNTS_ADDRESSES[1]; - -/** The gas of a transaction that runs no code. */ -const INTRINSIC_GAS = 21_000; - -/** The wei sent by a value transfer. */ -const TRANSFER_VALUE = numberToRpcQuantity(1); - -const CALL_TRACER = "callTracer"; - -/** Hardhat 2's trace of a value transfer. */ -const VALUE_TRANSFER_TRACE: RpcDebugTraceOutput = { - gas: INTRINSIC_GAS, - failed: false, - returnValue: "", - structLogs: [], -}; - -function address(index: number): string { - return `0x${index.toString(16).padStart(40, "0")}`; -} - -const STORAGE_ADDRESS = address(0x105); -const LIBRARY_ADDRESS = address(0x106); -const MAIN_ADDRESS = address(0x107); -const REVERT_ADDRESS = address(0x108); -const CREATE_ADDRESS = address(0x10a); -const REENTRANCY_ADDRESS = address(0x10b); -const STATICCALL_ADDRESS = address(0x10d); -const READER_ADDRESS = address(0x10e); -const CALLCODE_ADDRESS = address(0x10f); -const CREATE_AND_CALL_ADDRESS = address(0x110); -const INFINITE_LOOP_ADDRESS = address(0x111); -const PRECOMPILE_CALLER_ADDRESS = address(0x113); -const CODELESS_CALLER_ADDRESS = address(0x114); -/** An account that never gets code. */ -const CODELESS_ADDRESS = address(0x115); -const SINGLE_CALL_ADDRESS = address(0x116); -const STORAGE_THEN_READER_ADDRESS = address(0x117); -const ECRECOVER_PRECOMPILE_ADDRESS = address(0x1); -const IDENTITY_PRECOMPILE_ADDRESS = address(0x4); -const ELONGATED_MEMORY_ADDRESS = "0x1234567890123456789012345678901234567890"; - -/** The size of an EVM memory word in bytes. */ -const WORD_SIZE = 32; - -/** The depth of the steps in a call made by the transaction's recipient. */ -const NESTED_CALL_DEPTH = 2; - -/** Storage slot 0 as Hardhat 2 formats a storage key. */ -const SLOT_0_KEY = "0".repeat(2 * WORD_SIZE); - -function withoutPrefix(hex: string): string { - return hex.slice(2); -} - -/** Formats a number below 256 as two hex digits, the operand of a PUSH1. */ -function hexByte(n: number): string { - return n.toString(16).padStart(2, "0"); -} - -/** Returns the size in bytes of unprefixed hex. */ -function byteLength(hex: string): number { - return hex.length / 2; -} - -/** - * Calls `target` with `inputSize` bytes of memory at `inputOffset` as - * calldata, keeping 32 bytes of its output. `inputOffset` and `inputSize` - * must each be below 256. - */ -function call(target: string, inputOffset = 0, inputSize = 0): string { - return `6020600060${hexByte(inputSize)}60${hexByte( - inputOffset - )}600073${withoutPrefix(target)}5af150`; -} - -function staticcall(target: string): string { - return `600060006000600073${withoutPrefix(target)}5afa50`; -} - -function delegatecall(target: string): string { - return `600060006000600073${withoutPrefix(target)}5af450`; -} - -function callcode(target: string): string { - return `6000600060006000600073${withoutPrefix(target)}5af250`; -} - -/** Sets slot 0 to 1. */ -const STORE_SLOT_0 = "6001600055"; - -/** Loads slot 0 and stops. */ -const LOAD_SLOT_0 = "6000545000"; - -/** Init code that sets slot 0 to 1, loads it and deploys no code. */ -const STORAGE_INIT_CODE = `0x${STORE_SLOT_0}${LOAD_SLOT_0}`; - -/** Init code that sets slot 0 to 1 and deploys `LOAD_SLOT_0`. */ -const SLOT_READER_INIT_CODE = `${STORE_SLOT_0}64${LOAD_SLOT_0}6000526005601bf3`; -const SLOT_READER_INIT_CODE_SIZE = byteLength(SLOT_READER_INIT_CODE); -/** The init code's offset at the end of the first memory word. */ -const SLOT_READER_INIT_CODE_OFFSET = WORD_SIZE - SLOT_READER_INIT_CODE_SIZE; - -/** Stores the init code at the end of the first memory word. */ -const STORE_SLOT_READER_INIT_CODE = `72${SLOT_READER_INIT_CODE}600052`; - -/** Calls the address in the second memory word. */ -const CALL_STORED_ADDRESS = "600060006000600060006020515af150"; - -/** Three bytes of calldata. */ -const CALL_INPUT = "aabbcc"; -const CALL_INPUT_SIZE = byteLength(CALL_INPUT); -/** The calldata's offset at the end of the first memory word. */ -const CALL_INPUT_OFFSET = WORD_SIZE - CALL_INPUT_SIZE; - -/** - * Sets slot 0 to 1, calls `target` with `CALL_INPUT` and loads slot 0. The - * steps after the call show whether it switched the storage context. - */ -function callBetweenStorageAccesses(target: string): string { - return [ - "0x", - STORE_SLOT_0, - `62${CALL_INPUT}600052`, - call(target, CALL_INPUT_OFFSET, CALL_INPUT_SIZE), - LOAD_SLOT_0, - ].join(""); -} - -const CODE: Record = { - // Increments slot 0, sets slot 1 to 0x42 and returns slot 0. - [STORAGE_ADDRESS]: "0x600054600101600055604260015560005460005260206000f3", - // Sets slot 2 to 0x77. - [LIBRARY_ADDRESS]: "0x607760025500", - [READER_ADDRESS]: `0x${LOAD_SLOT_0}`, - // Loads slot 5, delegatecalls the library, calls the storage contract - // twice, loads slot 6 and returns the storage contract's output. - [MAIN_ADDRESS]: [ - "0x60055450", - delegatecall(LIBRARY_ADDRESS), - call(STORAGE_ADDRESS), - call(STORAGE_ADDRESS), - "6006545060206000f3", - ].join(""), - // Calls the reader, then staticcalls it. - [STATICCALL_ADDRESS]: [ - "0x", - call(READER_ADDRESS), - staticcall(READER_ADDRESS), - "00", - ].join(""), - // Loads slot 7, callcodes the library and loads slot 2. - [CALLCODE_ADDRESS]: [ - "0x60075450", - callcode(LIBRARY_ADDRESS), - "6002545000", - ].join(""), - // Reverts with 0xaa. - [REVERT_ADDRESS]: "0x60aa60005260206000fd", - // Without calldata, sets slot 3 to 1 and calls itself with one byte of - // calldata. That call sets slots 3 and 4 to 2. - [REENTRANCY_ADDRESS]: [ - "0x36602f57600160035560006000600160006000", - `73${withoutPrefix(REENTRANCY_ADDRESS)}5af150600050005b`, - "6002600355600260045500", - ].join(""), - // Creates a contract whose init code sets slot 0. - [CREATE_ADDRESS]: "0x656001600055006000526006601a6000f05000", - // Creates a slot reader with CREATE and with CREATE2 and calls each one. - // Then creates a contract whose init code reverts. - [CREATE_AND_CALL_ADDRESS]: [ - "0x", - STORE_SLOT_READER_INIT_CODE, - `60${hexByte(SLOT_READER_INIT_CODE_SIZE)}`, - `60${hexByte(SLOT_READER_INIT_CODE_OFFSET)}6000f0602052`, - CALL_STORED_ADDRESS, - STORE_SLOT_READER_INIT_CODE, - `600060${hexByte(SLOT_READER_INIT_CODE_SIZE)}`, - `60${hexByte(SLOT_READER_INIT_CODE_OFFSET)}6000f5602052`, - CALL_STORED_ADDRESS, - "6460006000fd6000526005601b6000f05000", - ].join(""), - // JUMPDEST PUSH1 0 JUMP - [INFINITE_LOOP_ADDRESS]: "0x5b600056", - // PUSH0 PUSH0 MSTORE PUSH0 - [ELONGATED_MEMORY_ADDRESS]: "0x5F5F525F", - // Sets slot 0, calls the identity precompile and loads slot 0. - [PRECOMPILE_CALLER_ADDRESS]: callBetweenStorageAccesses( - IDENTITY_PRECOMPILE_ADDRESS - ), - // Sets slot 0, calls an account without code and loads slot 0. - [CODELESS_CALLER_ADDRESS]: callBetweenStorageAccesses(CODELESS_ADDRESS), - // Calls the storage contract once. - [SINGLE_CALL_ADDRESS]: `0x${call(STORAGE_ADDRESS)}00`, - // Calls the storage contract, then the reader. - [STORAGE_THEN_READER_ADDRESS]: `0x${call(STORAGE_ADDRESS)}${call( - READER_ADDRESS - )}00`, -}; - -async function setCode(provider: EthereumProvider): Promise { - for (const [codeAddress, code] of Object.entries(CODE)) { - await provider.send("hardhat_setCode", [codeAddress, code]); - } -} - -/** Sends a transaction and returns its hash, even if it failed. */ -async function sendTransaction( - provider: EthereumProvider, - tx: { from?: string; to?: string; data?: string; gas?: string } -): Promise { - try { - return await provider.send("eth_sendTransaction", [ - { from: SENDER, gas: TX_GAS, ...tx }, - ]); - } catch { - const block = await provider.send("eth_getBlockByNumber", [ - "latest", - false, - ]); - return block.transactions[0]; - } -} - -/** The fields of geth's callTracer output that the tests check. */ -interface CallTracerFrame { - type: string; - to: string; - calls: unknown[]; -} - -/** Asserts that `trace` is the callTracer frame of a call to `MAIN_ADDRESS`. */ -function assertMainCallTracerFrame(trace: CallTracerFrame): void { - assert.equal(trace.type, "CALL"); - assert.equal(trace.to, MAIN_ADDRESS); - assert.lengthOf(trace.calls, 3); - assert.notProperty(trace, "structLogs"); -} - -/** Splits the steps of nested calls into one list per call. */ -function nestedCallFrames(trace: RpcDebugTraceOutput): RpcStructLog[][] { - const frames: RpcStructLog[][] = []; - let previousDepth: number | undefined; - for (const log of trace.structLogs) { - if (log.depth === NESTED_CALL_DEPTH) { - if (previousDepth !== NESTED_CALL_DEPTH) { - frames.push([]); - } - frames[frames.length - 1].push(log); - } - previousDepth = log.depth; - } - return frames; -} - -/** Returns the steps of `frame` before its first SLOAD and the rest. */ -function splitAtFirstSload( - frame: RpcStructLog[] -): [RpcStructLog[], RpcStructLog[]] { - const sloadIndex = frame.findIndex((log) => log.op === "SLOAD"); - assert.notEqual(sloadIndex, -1, "the frame has no SLOAD"); - return [frame.slice(0, sloadIndex), frame.slice(sloadIndex)]; -} - -type OptionalStructLogField = "memory" | "stack" | "storage"; - -function withoutFields( - trace: RpcDebugTraceOutput, - fields: OptionalStructLogField[] -): RpcDebugTraceOutput { - return { - ...trace, - structLogs: trace.structLogs.map((log): RpcStructLog => - _.omit(log, fields) - ), - }; -} - -describe("Debug module", function () { - PROVIDERS.forEach(({ name, useProvider }) => { - describe(`${name} provider`, function () { - useProvider(); - - beforeEach(async function () { - await setCode(this.provider); - }); - - describe("debug_traceTransaction", function () { - async function traceTransaction( - provider: EthereumProvider, - txHash: string, - options?: object - ): Promise { - const params = options === undefined ? [txHash] : [txHash, options]; - return provider.send("debug_traceTransaction", params); - } - - it("forwards an empty params list to EDR unchanged", async function () { - await assert.isRejected( - this.provider.send("debug_traceTransaction", []), - "invalid length 0" - ); - }); - - it("returns an empty trace for value transfers", async function () { - const txHash = await sendTransaction(this.provider, { - to: RECIPIENT, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash), - VALUE_TRANSFER_TRACE - ); - }); - - it("matches Hardhat 2's trace of a contract call", async function () { - const contractAddress = await deployContract( - this.provider, - `0x${EXAMPLE_CONTRACT.bytecode.object}`, - RECIPIENT - ); - const txHash = await sendTransaction(this.provider, { - from: RECIPIENT, - to: contractAddress, - data: `${EXAMPLE_CONTRACT.selectors.modifiesState}000000000000000000000000000000000000000000000000000000000000000a`, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash), - HARDHAT_2_TRACES.modifiesState - ); - }); - - it("uses the default tracer with an empty tracer name", async function () { - const contractAddress = await deployContract( - this.provider, - `0x${EXAMPLE_CONTRACT.bytecode.object}`, - RECIPIENT - ); - const txHash = await sendTransaction(this.provider, { - from: RECIPIENT, - to: contractAddress, - data: `${EXAMPLE_CONTRACT.selectors.modifiesState}000000000000000000000000000000000000000000000000000000000000000a`, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { tracer: "" }), - HARDHAT_2_TRACES.modifiesState - ); - }); - - const SCENARIOS: Array<{ - scenario: ScenarioName; - description: string; - tx: { from?: string; to?: string; data?: string }; - }> = [ - { - scenario: "elongatedMemory", - description: "memory without superfluous words", - tx: { - from: DEFAULT_ACCOUNTS_ADDRESSES[2], - to: ELONGATED_MEMORY_ADDRESS, - }, - }, - { - scenario: "storageContexts", - description: "storage across DELEGATECALL and CALL", - tx: { to: MAIN_ADDRESS }, - }, - { - scenario: "staticcall", - description: "storage across STATICCALL", - tx: { to: STATICCALL_ADDRESS }, - }, - { - scenario: "callcode", - description: "storage across CALLCODE", - tx: { to: CALLCODE_ADDRESS }, - }, - { - scenario: "reentrancy", - description: "storage written by a reentrant call", - tx: { to: REENTRANCY_ADDRESS }, - }, - { - scenario: "create", - description: "storage written by a created contract", - tx: { to: CREATE_ADDRESS }, - }, - { - scenario: "createAndCall", - description: "calls into contracts created with CREATE and CREATE2", - tx: { to: CREATE_AND_CALL_ADDRESS }, - }, - { - scenario: "revert", - description: "a reverted transaction", - tx: { to: REVERT_ADDRESS }, - }, - { - scenario: "precompileCall", - description: "storage around a CALL to a precompile", - tx: { to: PRECOMPILE_CALLER_ADDRESS }, - }, - { - scenario: "codelessCall", - description: "storage around a CALL to an account without code", - tx: { to: CODELESS_CALLER_ADDRESS }, - }, - { - scenario: "creation", - description: "storage written by a contract-creation transaction", - tx: { data: STORAGE_INIT_CODE }, - }, - { - scenario: "singleCall", - description: "a single nested call", - tx: { to: SINGLE_CALL_ADDRESS }, - }, - ]; - - for (const { scenario, description, tx } of SCENARIOS) { - it(`matches Hardhat 2's trace of ${description}`, async function () { - const txHash = await sendTransaction(this.provider, tx); - - assert.deepEqual( - await traceTransaction(this.provider, txHash), - HARDHAT_2_TRACES[scenario] - ); - }); - } - - // Without the stack, storage is exact only when every call keeps the - // caller's storage context, as in the CALLCODE scenario. - const DISABLE_OPTIONS: Array<{ - option: string; - field: OptionalStructLogField; - scenario: ScenarioName; - to: string; - }> = [ - { - option: "disableMemory", - field: "memory", - scenario: "storageContexts", - to: MAIN_ADDRESS, - }, - { - option: "disableStack", - field: "stack", - scenario: "callcode", - to: CALLCODE_ADDRESS, - }, - { - option: "disableStorage", - field: "storage", - scenario: "storageContexts", - to: MAIN_ADDRESS, - }, - ]; - - for (const { option, field, scenario, to } of DISABLE_OPTIONS) { - it(`omits ${field} with ${option}`, async function () { - const txHash = await sendTransaction(this.provider, { to }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { [option]: true }), - withoutFields(HARDHAT_2_TRACES[scenario], [field]) - ); - }); - } - - it("keeps storage per frame with disableStack when each contract is entered once", async function () { - const txHash = await sendTransaction(this.provider, { - to: SINGLE_CALL_ADDRESS, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { - disableStack: true, - }), - withoutFields(HARDHAT_2_TRACES.singleCall, ["stack"]) - ); - }); - - it("keeps the storage of each called contract apart with disableStack", async function () { - const txHash = await sendTransaction(this.provider, { - to: STORAGE_THEN_READER_ADDRESS, - }); - - const trace = await traceTransaction(this.provider, txHash, { - disableStack: true, - }); - - const [storageFrame, readerFrame] = nestedCallFrames(trace); - const [, storageStepsFromSload] = splitAtFirstSload(storageFrame); - const [readerStepsBeforeSload] = splitAtFirstSload(readerFrame); - - assert.isNotEmpty(readerStepsBeforeSload); - for (const log of readerStepsBeforeSload) { - assert.deepEqual(log.storage, {}); - } - for (const log of storageStepsFromSload) { - assert.property(log.storage, SLOT_0_KEY); - } - }); - - it("captures memory with disableMemory set to false", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { - disableMemory: false, - }), - HARDHAT_2_TRACES.storageContexts - ); - }); - - it("captures memory with enableMemory set to true", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { - enableMemory: true, - }), - HARDHAT_2_TRACES.storageContexts - ); - }); - - it("lets enableMemory take precedence over disableMemory", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { - enableMemory: true, - disableMemory: true, - }), - HARDHAT_2_TRACES.storageContexts - ); - }); - - it("omits memory with enableMemory set to false", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - assert.deepEqual( - await traceTransaction(this.provider, txHash, { - enableMemory: false, - }), - withoutFields(HARDHAT_2_TRACES.storageContexts, ["memory"]) - ); - }); - - it("adds returnData with enableReturnData", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - const trace = await traceTransaction(this.provider, txHash, { - enableReturnData: true, - }); - - assert.deepEqual( - { - ...trace, - structLogs: trace.structLogs.map((log) => - _.omit(log, "returnData") - ), - }, - HARDHAT_2_TRACES.storageContexts - ); - // The last step follows the second call, which returned 2. - assert.equal( - trace.structLogs[trace.structLogs.length - 1].returnData, - `0x${"2".padStart(64, "0")}` - ); - }); - - it("adds an error to an out-of-gas step, unlike Hardhat 2.29.1", async function () { - const txHash = await sendTransaction(this.provider, { - to: INFINITE_LOOP_ADDRESS, - gas: numberToRpcQuantity(21_100), - }); - - const trace = await traceTransaction(this.provider, txHash); - - assert.isTrue(trace.failed); - const { error } = trace.structLogs[trace.structLogs.length - 1]; - assert.property(error, "message"); - const { message } = error as { message: unknown }; - assert.isString(message); - assert.isNotEmpty(message); - }); - - it("returns geth's callTracer output", async function () { - const txHash = await sendTransaction(this.provider, { - to: MAIN_ADDRESS, - }); - - const trace = await traceTransaction( - this.provider, - txHash, - { tracer: CALL_TRACER } - ); - - assertMainCallTracerFrame(trace); - }); - - it("returns a failed trace without steps when a precompile call runs out of gas", async function () { - const txHash = await sendTransaction(this.provider, { - to: ECRECOVER_PRECOMPILE_ADDRESS, - gas: numberToRpcQuantity(INTRINSIC_GAS), - }); - - assert.deepEqual(await traceTransaction(this.provider, txHash), { - ...VALUE_TRANSFER_TRACE, - failed: true, - }); - }); - }); - - describe("debug_traceCall", function () { - const CALL = { from: SENDER, to: STORAGE_ADDRESS, gas: TX_GAS }; - - const TRACE_CALL_SCENARIOS: Array<{ - scenario: ScenarioName; - description: string; - call: { to?: string; data?: string }; - }> = [ - { - scenario: "reentrancyCall", - description: "storage written by a reentrant call", - call: { to: REENTRANCY_ADDRESS }, - }, - { - scenario: "creationCall", - description: "a call without a recipient", - call: { to: undefined, data: STORAGE_INIT_CODE }, - }, - { - scenario: "revertCall", - description: "a reverted call", - call: { to: REVERT_ADDRESS }, - }, - ]; - - it("forwards an empty params list to EDR unchanged", async function () { - await assert.isRejected( - this.provider.send("debug_traceCall", []), - "invalid length 0" - ); - }); - - it("matches Hardhat 2's trace", async function () { - assert.deepEqual( - await this.provider.send("debug_traceCall", [CALL, "latest"]), - HARDHAT_2_TRACES.traceCall - ); - }); - - for (const { - scenario, - description, - call: callFields, - } of TRACE_CALL_SCENARIOS) { - it(`matches Hardhat 2's trace of ${description}`, async function () { - assert.deepEqual( - await this.provider.send("debug_traceCall", [ - { ...CALL, ...callFields }, - "latest", - ]), - HARDHAT_2_TRACES[scenario] - ); - }); - } - - it("returns an empty trace for value transfers", async function () { - assert.deepEqual( - await this.provider.send("debug_traceCall", [ - { ...CALL, to: RECIPIENT, value: TRANSFER_VALUE }, - "latest", - ]), - VALUE_TRANSFER_TRACE - ); - }); - - it("uses the default tracer with an empty tracer name", async function () { - assert.deepEqual( - await this.provider.send("debug_traceCall", [ - CALL, - "latest", - { tracer: "" }, - ]), - HARDHAT_2_TRACES.traceCall - ); - }); - - it("matches Hardhat 2's trace without a block tag", async function () { - assert.deepEqual( - await this.provider.send("debug_traceCall", [CALL]), - HARDHAT_2_TRACES.traceCall - ); - }); - - it("omits memory, stack and storage when disabled", async function () { - const trace = await this.provider.send("debug_traceCall", [ - CALL, - "latest", - { disableMemory: true, disableStack: true, disableStorage: true }, - ]); - - assert.deepEqual( - trace, - withoutFields(HARDHAT_2_TRACES.traceCall, [ - "memory", - "stack", - "storage", - ]) - ); - }); - - it("returns geth's callTracer output", async function () { - const trace: CallTracerFrame = await this.provider.send( - "debug_traceCall", - [{ ...CALL, to: MAIN_ADDRESS }, "latest", { tracer: CALL_TRACER }] - ); - - assertMainCallTracerFrame(trace); - }); - }); - }); - }); -}); diff --git a/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json b/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json deleted file mode 100644 index 8076c5a9b94..00000000000 --- a/packages/hardhat-core/test/internal/hardhat-network/provider/fixture-debug-traces/hardhat-2.29.1.json +++ /dev/null @@ -1,7320 +0,0 @@ -{ - "modifiesState": { - "failed": false, - "gas": 44945, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 978796, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978793, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978790, - "gasCost": 12, - "op": "MSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000040" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978778, - "gasCost": 3, - "op": "PUSH1", - "pc": 5, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978775, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 7, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978773, - "gasCost": 3, - "op": "LT", - "pc": 8, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978770, - "gasCost": 3, - "op": "PUSH2", - "pc": 9, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978767, - "gasCost": 10, - "op": "JUMPI", - "pc": 12, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000034" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978757, - "gasCost": 3, - "op": "PUSH1", - "pc": 13, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978754, - "gasCost": 3, - "op": "CALLDATALOAD", - "pc": 15, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978751, - "gasCost": 3, - "op": "PUSH1", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "1b334ecc00000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978748, - "gasCost": 3, - "op": "SHR", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "1b334ecc00000000000000000000000000000000000000000000000000000000", - "00000000000000000000000000000000000000000000000000000000000000e0" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978745, - "gasCost": 3, - "op": "DUP1", - "pc": 19, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978742, - "gasCost": 3, - "op": "PUSH4", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978739, - "gasCost": 3, - "op": "EQ", - "pc": 25, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "000000000000000000000000000000000000000000000000000000001b334ecc", - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978736, - "gasCost": 3, - "op": "PUSH2", - "pc": 26, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978733, - "gasCost": 10, - "op": "JUMPI", - "pc": 29, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000039" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978723, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 57, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978722, - "gasCost": 3, - "op": "PUSH2", - "pc": 58, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978719, - "gasCost": 3, - "op": "PUSH1", - "pc": 61, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978716, - "gasCost": 3, - "op": "DUP1", - "pc": 63, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978713, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 64, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978711, - "gasCost": 3, - "op": "SUB", - "pc": 65, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978708, - "gasCost": 3, - "op": "PUSH1", - "pc": 66, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978705, - "gasCost": 3, - "op": "DUP2", - "pc": 68, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978702, - "gasCost": 3, - "op": "LT", - "pc": 69, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978699, - "gasCost": 3, - "op": "ISZERO", - "pc": 70, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978696, - "gasCost": 3, - "op": "PUSH2", - "pc": 71, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978693, - "gasCost": 10, - "op": "JUMPI", - "pc": 74, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000001", - "000000000000000000000000000000000000000000000000000000000000004f" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978683, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 79, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978682, - "gasCost": 3, - "op": "DUP2", - "pc": 80, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978679, - "gasCost": 3, - "op": "ADD", - "pc": 81, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978676, - "gasCost": 3, - "op": "SWAP1", - "pc": 82, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978673, - "gasCost": 3, - "op": "DUP1", - "pc": 83, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978670, - "gasCost": 3, - "op": "DUP1", - "pc": 84, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978667, - "gasCost": 3, - "op": "CALLDATALOAD", - "pc": 85, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978664, - "gasCost": 3, - "op": "SWAP1", - "pc": 86, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000004", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978661, - "gasCost": 3, - "op": "PUSH1", - "pc": 87, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978658, - "gasCost": 3, - "op": "ADD", - "pc": 89, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978655, - "gasCost": 3, - "op": "SWAP1", - "pc": 90, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978652, - "gasCost": 3, - "op": "SWAP3", - "pc": 91, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978649, - "gasCost": 3, - "op": "SWAP2", - "pc": 92, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978646, - "gasCost": 3, - "op": "SWAP1", - "pc": 93, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978643, - "gasCost": 2, - "op": "POP", - "pc": 94, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978641, - "gasCost": 2, - "op": "POP", - "pc": 95, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000024", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978639, - "gasCost": 2, - "op": "POP", - "pc": 96, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000024" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978637, - "gasCost": 3, - "op": "PUSH2", - "pc": 97, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978634, - "gasCost": 8, - "op": "JUMP", - "pc": 100, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "00000000000000000000000000000000000000000000000000000000000000c3" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978626, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 195, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978625, - "gasCost": 3, - "op": "PUSH1", - "pc": 196, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978622, - "gasCost": 2100, - "op": "SLOAD", - "pc": 198, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976522, - "gasCost": 3, - "op": "PUSH32", - "pc": 199, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976519, - "gasCost": 3, - "op": "DUP3", - "pc": 232, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976516, - "gasCost": 3, - "op": "PUSH1", - "pc": 233, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976513, - "gasCost": 3, - "op": "MLOAD", - "pc": 235, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000040" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976510, - "gasCost": 3, - "op": "DUP1", - "pc": 236, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976507, - "gasCost": 3, - "op": "DUP3", - "pc": 237, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976504, - "gasCost": 3, - "op": "DUP2", - "pc": 238, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976501, - "gasCost": 9, - "op": "MSTORE", - "pc": 239, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976492, - "gasCost": 3, - "op": "PUSH1", - "pc": 240, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976489, - "gasCost": 3, - "op": "ADD", - "pc": 242, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976486, - "gasCost": 3, - "op": "SWAP2", - "pc": 243, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000080", - "00000000000000000000000000000000000000000000000000000000000000a0" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976483, - "gasCost": 2, - "op": "POP", - "pc": 244, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0", - "0000000000000000000000000000000000000000000000000000000000000080", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976481, - "gasCost": 2, - "op": "POP", - "pc": 245, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976479, - "gasCost": 3, - "op": "PUSH1", - "pc": 246, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976476, - "gasCost": 3, - "op": "MLOAD", - "pc": 248, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0", - "0000000000000000000000000000000000000000000000000000000000000040" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976473, - "gasCost": 3, - "op": "DUP1", - "pc": 249, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976470, - "gasCost": 3, - "op": "SWAP2", - "pc": 250, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "00000000000000000000000000000000000000000000000000000000000000a0", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976467, - "gasCost": 3, - "op": "SUB", - "pc": 251, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000080", - "00000000000000000000000000000000000000000000000000000000000000a0" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976464, - "gasCost": 3, - "op": "SWAP1", - "pc": 252, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976461, - "gasCost": 1381, - "op": "LOG2", - "pc": 253, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "3359f789ea83a10b6e9605d460de1088ff290dd7b3c9a155c896d45cf495ed4d", - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000080" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 975080, - "gasCost": 3, - "op": "DUP1", - "pc": 254, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 975077, - "gasCost": 3, - "op": "PUSH1", - "pc": 255, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 975074, - "gasCost": 3, - "op": "DUP2", - "pc": 257, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 975071, - "gasCost": 3, - "op": "SWAP1", - "pc": 258, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 975068, - "gasCost": 20000, - "op": "SSTORE", - "pc": 259, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - }, - { - "depth": 1, - "gas": 955068, - "gasCost": 2, - "op": "POP", - "pc": 260, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - }, - { - "depth": 1, - "gas": 955066, - "gasCost": 2, - "op": "POP", - "pc": 261, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - }, - { - "depth": 1, - "gas": 955064, - "gasCost": 8, - "op": "JUMP", - "pc": 262, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc", - "0000000000000000000000000000000000000000000000000000000000000065" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - }, - { - "depth": 1, - "gas": 955056, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 101, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - }, - { - "depth": 1, - "gas": 955055, - "gasCost": 0, - "op": "STOP", - "pc": 102, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000080", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000000a" - ], - "stack": [ - "000000000000000000000000000000000000000000000000000000001b334ecc" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "000000000000000000000000000000000000000000000000000000000000000a" - } - } - ] - }, - "elongatedMemory": { - "failed": false, - "gas": 21012, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 2, - "op": "PUSH0", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978998, - "gasCost": 2, - "op": "PUSH0", - "pc": 1, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978996, - "gasCost": 6, - "op": "MSTORE", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978990, - "gasCost": 2, - "op": "PUSH0", - "pc": 3, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 0, - "op": "STOP", - "pc": 4, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - } - ] - }, - "storageContexts": { - "failed": false, - "gas": 97460, - "returnValue": "0x0000000000000000000000000000000000000000000000000000000000000002", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976897, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976895, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976892, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976889, - "gasCost": 3, - "op": "PUSH1", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976886, - "gasCost": 3, - "op": "PUSH1", - "pc": 10, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976883, - "gasCost": 3, - "op": "PUSH20", - "pc": 12, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976880, - "gasCost": 2, - "op": "GAS", - "pc": 33, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000106" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976878, - "gasCost": 961655, - "op": "DELEGATECALL", - "pc": 34, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000106", - "00000000000000000000000000000000000000000000000000000000000ee7ee" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959055, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959052, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000077" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959049, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 2, - "gas": 936949, - "gasCost": 0, - "op": "STOP", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952172, - "gasCost": 2, - "op": "POP", - "pc": 35, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952170, - "gasCost": 3, - "op": "PUSH1", - "pc": 36, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952167, - "gasCost": 3, - "op": "PUSH1", - "pc": 38, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952164, - "gasCost": 3, - "op": "PUSH1", - "pc": 40, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952161, - "gasCost": 3, - "op": "PUSH1", - "pc": 42, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952158, - "gasCost": 3, - "op": "PUSH1", - "pc": 44, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952155, - "gasCost": 3, - "op": "PUSH20", - "pc": 46, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952152, - "gasCost": 2, - "op": "GAS", - "pc": 67, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 952150, - "gasCost": 937314, - "op": "CALL", - "pc": 68, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105", - "00000000000000000000000000000000000000000000000000000000000e8756" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 2, - "gas": 934711, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 934708, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 932608, - "gasCost": 3, - "op": "PUSH1", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 932605, - "gasCost": 3, - "op": "ADD", - "pc": 5, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 932602, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 932599, - "gasCost": 20000, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 912599, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 912596, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 912593, - "gasCost": 22100, - "op": "SSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890493, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890490, - "gasCost": 100, - "op": "SLOAD", - "pc": 16, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890390, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890387, - "gasCost": 6, - "op": "MSTORE", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890381, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890378, - "gasCost": 3, - "op": "PUSH1", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890375, - "gasCost": 0, - "op": "RETURN", - "pc": 24, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 905211, - "gasCost": 2, - "op": "POP", - "pc": 69, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905209, - "gasCost": 3, - "op": "PUSH1", - "pc": 70, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905206, - "gasCost": 3, - "op": "PUSH1", - "pc": 72, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905203, - "gasCost": 3, - "op": "PUSH1", - "pc": 74, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905200, - "gasCost": 3, - "op": "PUSH1", - "pc": 76, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905197, - "gasCost": 3, - "op": "PUSH1", - "pc": 78, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905194, - "gasCost": 3, - "op": "PUSH20", - "pc": 80, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905191, - "gasCost": 2, - "op": "GAS", - "pc": 101, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 905189, - "gasCost": 891047, - "op": "CALL", - "pc": 102, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105", - "00000000000000000000000000000000000000000000000000000000000dcfe5" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 2, - "gas": 890947, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890944, - "gasCost": 100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890844, - "gasCost": 3, - "op": "PUSH1", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890841, - "gasCost": 3, - "op": "ADD", - "pc": 5, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890838, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890835, - "gasCost": 100, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890735, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890732, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890729, - "gasCost": 100, - "op": "SSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890629, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890626, - "gasCost": 100, - "op": "SLOAD", - "pc": 16, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890526, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890523, - "gasCost": 6, - "op": "MSTORE", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890517, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890514, - "gasCost": 3, - "op": "PUSH1", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 2, - "gas": 890511, - "gasCost": 0, - "op": "RETURN", - "pc": 24, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 904653, - "gasCost": 2, - "op": "POP", - "pc": 103, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 904651, - "gasCost": 3, - "op": "PUSH1", - "pc": 104, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 904648, - "gasCost": 2100, - "op": "SLOAD", - "pc": 106, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000006" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 902548, - "gasCost": 2, - "op": "POP", - "pc": 107, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 902546, - "gasCost": 3, - "op": "PUSH1", - "pc": 108, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 902543, - "gasCost": 3, - "op": "PUSH1", - "pc": 110, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - }, - { - "depth": 1, - "gas": 902540, - "gasCost": 0, - "op": "RETURN", - "pc": 112, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000006": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000005": "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077" - } - } - ] - }, - "staticcall": { - "failed": false, - "gas": 25954, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978991, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH20", - "pc": 10, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 2, - "op": "GAS", - "pc": 31, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010e" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978980, - "gasCost": 963725, - "op": "CALL", - "pc": 32, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010e", - "00000000000000000000000000000000000000000000000000000000000ef024" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 961122, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 961119, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959019, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959017, - "gasCost": 0, - "op": "STOP", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 974272, - "gasCost": 2, - "op": "POP", - "pc": 33, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974270, - "gasCost": 3, - "op": "PUSH1", - "pc": 34, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 974267, - "gasCost": 3, - "op": "PUSH1", - "pc": 36, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974264, - "gasCost": 3, - "op": "PUSH1", - "pc": 38, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974261, - "gasCost": 3, - "op": "PUSH1", - "pc": 40, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974258, - "gasCost": 3, - "op": "PUSH20", - "pc": 42, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974255, - "gasCost": 2, - "op": "GAS", - "pc": 63, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010e" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974253, - "gasCost": 959032, - "op": "STATICCALL", - "pc": 64, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010e", - "00000000000000000000000000000000000000000000000000000000000eddad" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 958932, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 958929, - "gasCost": 100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 958829, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 958827, - "gasCost": 0, - "op": "STOP", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 974048, - "gasCost": 2, - "op": "POP", - "pc": 65, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 974046, - "gasCost": 0, - "op": "STOP", - "pc": 66, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": {} - } - ] - }, - "callcode": { - "failed": false, - "gas": 47938, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000007" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976897, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976895, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976892, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976889, - "gasCost": 3, - "op": "PUSH1", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976886, - "gasCost": 3, - "op": "PUSH1", - "pc": 10, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976883, - "gasCost": 3, - "op": "PUSH1", - "pc": 12, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976880, - "gasCost": 3, - "op": "PUSH20", - "pc": 14, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976877, - "gasCost": 2, - "op": "GAS", - "pc": 35, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000106" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976875, - "gasCost": 961652, - "op": "CALLCODE", - "pc": 36, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000106", - "00000000000000000000000000000000000000000000000000000000000ee7eb" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959052, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959049, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000077" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959046, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 936946, - "gasCost": 0, - "op": "STOP", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 952169, - "gasCost": 2, - "op": "POP", - "pc": 37, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 952167, - "gasCost": 3, - "op": "PUSH1", - "pc": 38, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 952164, - "gasCost": 100, - "op": "SLOAD", - "pc": 40, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 952064, - "gasCost": 2, - "op": "POP", - "pc": 41, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000077" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 952062, - "gasCost": 0, - "op": "STOP", - "pc": 42, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000002": "0000000000000000000000000000000000000000000000000000000000000077", - "0000000000000000000000000000000000000000000000000000000000000007": "0000000000000000000000000000000000000000000000000000000000000000" - } - } - ] - }, - "reentrancy": { - "failed": false, - "gas": 65479, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978998, - "gasCost": 3, - "op": "PUSH1", - "pc": 1, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978995, - "gasCost": 10, - "op": "JUMPI", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000002f" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978979, - "gasCost": 22100, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956879, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956876, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956873, - "gasCost": 3, - "op": "PUSH1", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956870, - "gasCost": 3, - "op": "PUSH1", - "pc": 15, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956867, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956864, - "gasCost": 3, - "op": "PUSH20", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956861, - "gasCost": 2, - "op": "GAS", - "pc": 40, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010b" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956859, - "gasCost": 941910, - "op": "CALL", - "pc": 41, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010b", - "00000000000000000000000000000000000000000000000000000000000e99bb" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941807, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941805, - "gasCost": 3, - "op": "PUSH1", - "pc": 1, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941802, - "gasCost": 10, - "op": "JUMPI", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "000000000000000000000000000000000000000000000000000000000000002f" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941792, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 47, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941791, - "gasCost": 3, - "op": "PUSH1", - "pc": 48, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941788, - "gasCost": 3, - "op": "PUSH1", - "pc": 50, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941785, - "gasCost": 100, - "op": "SSTORE", - "pc": 52, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941685, - "gasCost": 3, - "op": "PUSH1", - "pc": 53, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941682, - "gasCost": 3, - "op": "PUSH1", - "pc": 55, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941679, - "gasCost": 22100, - "op": "SSTORE", - "pc": 57, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 919579, - "gasCost": 0, - "op": "STOP", - "pc": 58, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934528, - "gasCost": 2, - "op": "POP", - "pc": 42, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934526, - "gasCost": 3, - "op": "PUSH1", - "pc": 43, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934523, - "gasCost": 2, - "op": "POP", - "pc": 45, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934521, - "gasCost": 0, - "op": "STOP", - "pc": 46, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - } - ] - }, - "create": { - "failed": false, - "gas": 75131, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH6", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 7, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 6, - "op": "MSTORE", - "pc": 9, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000600160005500", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 10, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 12, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000006" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000006", - "000000000000000000000000000000000000000000000000000000000000001a" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978979, - "gasCost": 964183, - "op": "CREATE", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000006", - "000000000000000000000000000000000000000000000000000000000000001a", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 932181, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 932178, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 932175, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910075, - "gasCost": 0, - "op": "STOP", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924871, - "gasCost": 2, - "op": "POP", - "pc": 17, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [ - "000000000000000000000000f23460a23e6594d5ce2d2a2f205c1e2597676ad2" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 924869, - "gasCost": 0, - "op": "STOP", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000600160005500" - ], - "stack": [], - "storage": {} - } - ] - }, - "createAndCall": { - "failed": false, - "gas": 163803, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH19", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [], - "stack": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 6, - "op": "MSTORE", - "pc": 22, - "memory": [], - "stack": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 23, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 25, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000013" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 3, - "op": "PUSH1", - "pc": 27, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000013", - "000000000000000000000000000000000000000000000000000000000000000d" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978979, - "gasCost": 964183, - "op": "CREATE", - "pc": 29, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000013", - "000000000000000000000000000000000000000000000000000000000000000d", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 932181, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 932178, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 932175, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910075, - "gasCost": 3, - "op": "PUSH5", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910072, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910069, - "gasCost": 6, - "op": "MSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000006000545000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910063, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910060, - "gasCost": 3, - "op": "PUSH1", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 910057, - "gasCost": 0, - "op": "RETURN", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005", - "000000000000000000000000000000000000000000000000000000000000001b" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 923853, - "gasCost": 3, - "op": "PUSH1", - "pc": 30, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [ - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923850, - "gasCost": 6, - "op": "MSTORE", - "pc": 32, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "stack": [ - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923844, - "gasCost": 3, - "op": "PUSH1", - "pc": 33, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 923841, - "gasCost": 3, - "op": "PUSH1", - "pc": 35, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923838, - "gasCost": 3, - "op": "PUSH1", - "pc": 37, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923835, - "gasCost": 3, - "op": "PUSH1", - "pc": 39, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923832, - "gasCost": 3, - "op": "PUSH1", - "pc": 41, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923829, - "gasCost": 3, - "op": "PUSH1", - "pc": 43, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923826, - "gasCost": 3, - "op": "MLOAD", - "pc": 45, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923823, - "gasCost": 2, - "op": "GAS", - "pc": 46, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923821, - "gasCost": 909388, - "op": "CALL", - "pc": 47, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef", - "00000000000000000000000000000000000000000000000000000000000e18ad" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 909288, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 909285, - "gasCost": 100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 909185, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 909183, - "gasCost": 0, - "op": "STOP", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 923616, - "gasCost": 2, - "op": "POP", - "pc": 48, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923614, - "gasCost": 3, - "op": "PUSH19", - "pc": 49, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 923611, - "gasCost": 3, - "op": "PUSH1", - "pc": 69, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000060016000556460005450006000526005601bf3" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923608, - "gasCost": 3, - "op": "MSTORE", - "pc": 71, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923605, - "gasCost": 3, - "op": "PUSH1", - "pc": 72, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 923602, - "gasCost": 3, - "op": "PUSH1", - "pc": 74, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923599, - "gasCost": 3, - "op": "PUSH1", - "pc": 76, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000013" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923596, - "gasCost": 3, - "op": "PUSH1", - "pc": 78, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000013", - "000000000000000000000000000000000000000000000000000000000000000d" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 923593, - "gasCost": 909662, - "op": "CREATE2", - "pc": 80, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000013", - "000000000000000000000000000000000000000000000000000000000000000d", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 877654, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 877651, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 877648, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855548, - "gasCost": 3, - "op": "PUSH5", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855545, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855542, - "gasCost": 6, - "op": "MSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000006000545000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855536, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855533, - "gasCost": 3, - "op": "PUSH1", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 855530, - "gasCost": 0, - "op": "RETURN", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000006000545000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005", - "000000000000000000000000000000000000000000000000000000000000001b" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 868461, - "gasCost": 3, - "op": "PUSH1", - "pc": 81, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868458, - "gasCost": 3, - "op": "MSTORE", - "pc": 83, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "000000000000000000000000f4401329708d10160b0ee9fb8436f069d2b36eef" - ], - "stack": [ - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868455, - "gasCost": 3, - "op": "PUSH1", - "pc": 84, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 868452, - "gasCost": 3, - "op": "PUSH1", - "pc": 86, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868449, - "gasCost": 3, - "op": "PUSH1", - "pc": 88, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868446, - "gasCost": 3, - "op": "PUSH1", - "pc": 90, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868443, - "gasCost": 3, - "op": "PUSH1", - "pc": 92, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868440, - "gasCost": 3, - "op": "PUSH1", - "pc": 94, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868437, - "gasCost": 3, - "op": "MLOAD", - "pc": 96, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868434, - "gasCost": 2, - "op": "GAS", - "pc": 97, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868432, - "gasCost": 854865, - "op": "CALL", - "pc": 98, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32", - "00000000000000000000000000000000000000000000000000000000000d4050" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 854765, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 854762, - "gasCost": 100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 854662, - "gasCost": 2, - "op": "POP", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 854660, - "gasCost": 0, - "op": "STOP", - "pc": 4, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 868227, - "gasCost": 2, - "op": "POP", - "pc": 99, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868225, - "gasCost": 3, - "op": "PUSH5", - "pc": 100, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 868222, - "gasCost": 3, - "op": "PUSH1", - "pc": 106, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "00000000000000000000000000000000000000000000000000000060006000fd" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868219, - "gasCost": 3, - "op": "MSTORE", - "pc": 108, - "memory": [ - "0000000000000000000000000060016000556460005450006000526005601bf3", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868216, - "gasCost": 3, - "op": "PUSH1", - "pc": 109, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 868213, - "gasCost": 3, - "op": "PUSH1", - "pc": 111, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868210, - "gasCost": 3, - "op": "PUSH1", - "pc": 113, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005", - "000000000000000000000000000000000000000000000000000000000000001b" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 868207, - "gasCost": 855142, - "op": "CREATE", - "pc": 115, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000005", - "000000000000000000000000000000000000000000000000000000000000001b", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 823140, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 823137, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 823134, - "gasCost": 0, - "op": "REVERT", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 836199, - "gasCost": 2, - "op": "POP", - "pc": 116, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 836197, - "gasCost": 0, - "op": "STOP", - "pc": 117, - "memory": [ - "00000000000000000000000000000000000000000000000000000060006000fd", - "0000000000000000000000005b8bb2643f88dc3c492ade45490a3b2265a4dc32" - ], - "stack": [], - "storage": {} - } - ] - }, - "revert": { - "failed": true, - "gas": 21018, - "returnValue": "0x00000000000000000000000000000000000000000000000000000000000000aa", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 6, - "op": "MSTORE", - "pc": 4, - "memory": [], - "stack": [ - "00000000000000000000000000000000000000000000000000000000000000aa", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 5, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 7, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 0, - "op": "REVERT", - "pc": 9, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - } - ] - }, - "traceCall": { - "failed": false, - "gas": 65336, - "returnValue": "0x0000000000000000000000000000000000000000000000000000000000000001", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976897, - "gasCost": 3, - "op": "PUSH1", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976894, - "gasCost": 3, - "op": "ADD", - "pc": 5, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976891, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 1, - "gas": 976888, - "gasCost": 20000, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956888, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956885, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956882, - "gasCost": 22100, - "op": "SSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934782, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934779, - "gasCost": 100, - "op": "SLOAD", - "pc": 16, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934679, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934676, - "gasCost": 6, - "op": "MSTORE", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934670, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934667, - "gasCost": 3, - "op": "PUSH1", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - }, - { - "depth": 1, - "gas": 934664, - "gasCost": 0, - "op": "RETURN", - "pc": 24, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042" - } - } - ] - }, - "reentrancyCall": { - "failed": false, - "gas": 65479, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978998, - "gasCost": 3, - "op": "PUSH1", - "pc": 1, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978995, - "gasCost": 10, - "op": "JUMPI", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000002f" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978979, - "gasCost": 22100, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956879, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956876, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956873, - "gasCost": 3, - "op": "PUSH1", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956870, - "gasCost": 3, - "op": "PUSH1", - "pc": 15, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956867, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956864, - "gasCost": 3, - "op": "PUSH20", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956861, - "gasCost": 2, - "op": "GAS", - "pc": 40, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010b" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956859, - "gasCost": 941910, - "op": "CALL", - "pc": 41, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "000000000000000000000000000000000000000000000000000000000000010b", - "00000000000000000000000000000000000000000000000000000000000e99bb" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941807, - "gasCost": 2, - "op": "CALLDATASIZE", - "pc": 0, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941805, - "gasCost": 3, - "op": "PUSH1", - "pc": 1, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941802, - "gasCost": 10, - "op": "JUMPI", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "000000000000000000000000000000000000000000000000000000000000002f" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941792, - "gasCost": 1, - "op": "JUMPDEST", - "pc": 47, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941791, - "gasCost": 3, - "op": "PUSH1", - "pc": 48, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941788, - "gasCost": 3, - "op": "PUSH1", - "pc": 50, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 941785, - "gasCost": 100, - "op": "SSTORE", - "pc": 52, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941685, - "gasCost": 3, - "op": "PUSH1", - "pc": 53, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941682, - "gasCost": 3, - "op": "PUSH1", - "pc": 55, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 941679, - "gasCost": 22100, - "op": "SSTORE", - "pc": 57, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 2, - "gas": 919579, - "gasCost": 0, - "op": "STOP", - "pc": 58, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934528, - "gasCost": 2, - "op": "POP", - "pc": 42, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934526, - "gasCost": 3, - "op": "PUSH1", - "pc": 43, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934523, - "gasCost": 2, - "op": "POP", - "pc": 45, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - }, - { - "depth": 1, - "gas": 934521, - "gasCost": 0, - "op": "STOP", - "pc": 46, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000004": "0000000000000000000000000000000000000000000000000000000000000002", - "0000000000000000000000000000000000000000000000000000000000000003": "0000000000000000000000000000000000000000000000000000000000000002" - } - } - ] - }, - "precompileCall": { - "failed": false, - "gas": 43363, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956894, - "gasCost": 3, - "op": "PUSH3", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956891, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956888, - "gasCost": 6, - "op": "MSTORE", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956882, - "gasCost": 3, - "op": "PUSH1", - "pc": 12, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956879, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956876, - "gasCost": 3, - "op": "PUSH1", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956873, - "gasCost": 3, - "op": "PUSH1", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956870, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956867, - "gasCost": 3, - "op": "PUSH20", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956864, - "gasCost": 2, - "op": "GAS", - "pc": 43, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000004" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956862, - "gasCost": 941913, - "op": "CALL", - "pc": 44, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000004", - "00000000000000000000000000000000000000000000000000000000000e99be" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956744, - "gasCost": 2, - "op": "POP", - "pc": 45, - "memory": [ - "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956742, - "gasCost": 3, - "op": "PUSH1", - "pc": 46, - "memory": [ - "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956739, - "gasCost": 100, - "op": "SLOAD", - "pc": 48, - "memory": [ - "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956639, - "gasCost": 2, - "op": "POP", - "pc": 49, - "memory": [ - "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956637, - "gasCost": 0, - "op": "STOP", - "pc": 50, - "memory": [ - "aabbcc0000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - } - ] - }, - "codelessCall": { - "failed": false, - "gas": 45845, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956894, - "gasCost": 3, - "op": "PUSH3", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956891, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956888, - "gasCost": 6, - "op": "MSTORE", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956882, - "gasCost": 3, - "op": "PUSH1", - "pc": 12, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956879, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956876, - "gasCost": 3, - "op": "PUSH1", - "pc": 16, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956873, - "gasCost": 3, - "op": "PUSH1", - "pc": 18, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956870, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956867, - "gasCost": 3, - "op": "PUSH20", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956864, - "gasCost": 2, - "op": "GAS", - "pc": 43, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000115" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 956862, - "gasCost": 941952, - "op": "CALL", - "pc": 44, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000003", - "000000000000000000000000000000000000000000000000000000000000001d", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000115", - "00000000000000000000000000000000000000000000000000000000000e99be" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 954262, - "gasCost": 2, - "op": "POP", - "pc": 45, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 954260, - "gasCost": 3, - "op": "PUSH1", - "pc": 46, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 954257, - "gasCost": 100, - "op": "SLOAD", - "pc": 48, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 954157, - "gasCost": 2, - "op": "POP", - "pc": 49, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 954155, - "gasCost": 0, - "op": "STOP", - "pc": 50, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000aabbcc" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - } - ] - }, - "creation": { - "failed": false, - "gas": 75337, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 946874, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 946871, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 946868, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924768, - "gasCost": 3, - "op": "PUSH1", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924765, - "gasCost": 100, - "op": "SLOAD", - "pc": 7, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924665, - "gasCost": 2, - "op": "POP", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924663, - "gasCost": 0, - "op": "STOP", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - } - ] - }, - "creationCall": { - "failed": false, - "gas": 75337, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 946874, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 946871, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 946868, - "gasCost": 22100, - "op": "SSTORE", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924768, - "gasCost": 3, - "op": "PUSH1", - "pc": 5, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924765, - "gasCost": 100, - "op": "SLOAD", - "pc": 7, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924665, - "gasCost": 2, - "op": "POP", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 924663, - "gasCost": 0, - "op": "STOP", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - } - ] - }, - "revertCall": { - "failed": true, - "gas": 21018, - "returnValue": "0x00000000000000000000000000000000000000000000000000000000000000aa", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 6, - "op": "MSTORE", - "pc": 4, - "memory": [], - "stack": [ - "00000000000000000000000000000000000000000000000000000000000000aa", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 5, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH1", - "pc": 7, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 0, - "op": "REVERT", - "pc": 9, - "memory": [ - "00000000000000000000000000000000000000000000000000000000000000aa" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - } - ] - }, - "singleCall": { - "failed": false, - "gas": 67961, - "returnValue": "", - "structLogs": [ - { - "depth": 1, - "gas": 979000, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 1, - "gas": 978997, - "gasCost": 3, - "op": "PUSH1", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978994, - "gasCost": 3, - "op": "PUSH1", - "pc": 4, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978991, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978988, - "gasCost": 3, - "op": "PUSH1", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978985, - "gasCost": 3, - "op": "PUSH20", - "pc": 10, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978982, - "gasCost": 2, - "op": "GAS", - "pc": 31, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 978980, - "gasCost": 963725, - "op": "CALL", - "pc": 32, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000105", - "00000000000000000000000000000000000000000000000000000000000ef024" - ], - "storage": {} - }, - { - "depth": 2, - "gas": 961122, - "gasCost": 3, - "op": "PUSH1", - "pc": 0, - "memory": [], - "stack": [], - "storage": {} - }, - { - "depth": 2, - "gas": 961119, - "gasCost": 2100, - "op": "SLOAD", - "pc": 2, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959019, - "gasCost": 3, - "op": "PUSH1", - "pc": 3, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959016, - "gasCost": 3, - "op": "ADD", - "pc": 5, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959013, - "gasCost": 3, - "op": "PUSH1", - "pc": 6, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - { - "depth": 2, - "gas": 959010, - "gasCost": 20000, - "op": "SSTORE", - "pc": 8, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 939010, - "gasCost": 3, - "op": "PUSH1", - "pc": 9, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 939007, - "gasCost": 3, - "op": "PUSH1", - "pc": 11, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 939004, - "gasCost": 22100, - "op": "SSTORE", - "pc": 13, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916904, - "gasCost": 3, - "op": "PUSH1", - "pc": 14, - "memory": [], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916901, - "gasCost": 100, - "op": "SLOAD", - "pc": 16, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916801, - "gasCost": 3, - "op": "PUSH1", - "pc": 17, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916798, - "gasCost": 6, - "op": "MSTORE", - "pc": 19, - "memory": [], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916792, - "gasCost": 3, - "op": "PUSH1", - "pc": 20, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916789, - "gasCost": 3, - "op": "PUSH1", - "pc": 22, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 2, - "gas": 916786, - "gasCost": 0, - "op": "RETURN", - "pc": 24, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000020", - "0000000000000000000000000000000000000000000000000000000000000000" - ], - "storage": { - "0000000000000000000000000000000000000000000000000000000000000001": "0000000000000000000000000000000000000000000000000000000000000042", - "0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000001" - } - }, - { - "depth": 1, - "gas": 932041, - "gasCost": 2, - "op": "POP", - "pc": 33, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "storage": {} - }, - { - "depth": 1, - "gas": 932039, - "gasCost": 0, - "op": "STOP", - "pc": 34, - "memory": [ - "0000000000000000000000000000000000000000000000000000000000000001" - ], - "stack": [], - "storage": {} - } - ] - } -} From 7a8c61038f89e149d432d52bc43e6470f23c3ecb Mon Sep 17 00:00:00 2001 From: Wodann Date: Mon, 16 Nov 2026 10:20:10 +0000 Subject: [PATCH 38/39] deps: bump EDR to 0.25.1 The release reduces the memory used to record call traces, which the provider collects for the VM event bridge. Its other changes concern the Amsterdam hardfork and Solidity tests, which Hardhat 2 does not expose. --- .changeset/edr-call-trace-memory.md | 5 +++ packages/hardhat-core/package.json | 2 +- pnpm-lock.yaml | 66 ++++++++++++++--------------- 3 files changed, 39 insertions(+), 34 deletions(-) create mode 100644 .changeset/edr-call-trace-memory.md diff --git a/.changeset/edr-call-trace-memory.md b/.changeset/edr-call-trace-memory.md new file mode 100644 index 00000000000..c0ec5960793 --- /dev/null +++ b/.changeset/edr-call-trace-memory.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Improved the performance of the Hardhat Network provider by reducing the memory used to record the call traces of transactions and calls. diff --git a/packages/hardhat-core/package.json b/packages/hardhat-core/package.json index 58bfd40bc7c..b18c361f2b3 100644 --- a/packages/hardhat-core/package.json +++ b/packages/hardhat-core/package.json @@ -102,7 +102,7 @@ "dependencies": { "@ethereumjs/util": "^9.1.0", "@ethersproject/abi": "^5.1.2", - "@nomicfoundation/edr": "0.25.0", + "@nomicfoundation/edr": "0.25.1", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", "adm-zip": "^0.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39f1e521d25..aa7ae42ed1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,8 +201,8 @@ importers: specifier: ^5.1.2 version: 5.8.0 '@nomicfoundation/edr': - specifier: 0.25.0 - version: 0.25.0 + specifier: 0.25.1 + version: 0.25.1 '@nomicfoundation/solidity-analyzer': specifier: ^0.1.0 version: 0.1.2 @@ -3070,50 +3070,50 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@nomicfoundation/edr-darwin-arm64@0.25.0': - resolution: {integrity: sha512-k5jOQ4430lNIRPeDMmgDMeoCp0iqY8bjO5ZYBg93sH2FEDvyS08e6stBvmm9j91+VkAj24DIdjwq3b0AEKfutw==} + '@nomicfoundation/edr-darwin-arm64@0.25.1': + resolution: {integrity: sha512-ywk18Qzbrr9blWxfP9NGvCMnpqV7hHdHP1GYqNEuImA3550mpTvnmQLPO1r3a2KffHsmuyQPBbf658JLoS57ww==} engines: {node: '>= 22'} cpu: [arm64] os: [darwin] - '@nomicfoundation/edr-darwin-x64@0.25.0': - resolution: {integrity: sha512-V26jWmq2qsm6Aywh0MbSEBCkB5o1EAym9KFNi3dsbAi7sNFiyFYf5tQZ7HWpttVRNOGTXnyX6GhIpb90jbLPrQ==} + '@nomicfoundation/edr-darwin-x64@0.25.1': + resolution: {integrity: sha512-Wcl2P1U4+UiMKFomEM8ATZeUAIQswcMwrPN0E0fLBdSp2/k5y2l59Y1hqFPS/wwS7kfBpRvUPNBGh1hH6KKOLQ==} engines: {node: '>= 22'} cpu: [x64] os: [darwin] - '@nomicfoundation/edr-linux-arm64-gnu@0.25.0': - resolution: {integrity: sha512-1QRVSdq4YNS+r7f6MmWS8J/K0A9JlrzIjeV/BVEM5gTe7KyxJ0NwX4ErUAMbizl2JCmDwuD1SAak8X6YjZDMJA==} + '@nomicfoundation/edr-linux-arm64-gnu@0.25.1': + resolution: {integrity: sha512-oss7sbqksybp03RSZLsmv9GEKeA4+OwGdUxXoPsSewztRE66aPWjgMVEANtLpB7291WxWZHpmhQnSoCgO/us9w==} engines: {node: '>= 22'} cpu: [arm64] os: [linux] - '@nomicfoundation/edr-linux-arm64-musl@0.25.0': - resolution: {integrity: sha512-uNim6ggISggh9nRAtwhVgDQ4cmkypM1kpqP757DL9q8DremHMGdK8BgPMx8J2VNMfjYwC7Ohuyszztau6obkLg==} + '@nomicfoundation/edr-linux-arm64-musl@0.25.1': + resolution: {integrity: sha512-+6r+ykQfLXDCSEaomx56M97QLNxcKoKrWVliN3bpG11hw52ASngi6z31Z0/JBl5GHfsAtuUmVWk8KnUucXhFFw==} engines: {node: '>= 22'} cpu: [arm64] os: [linux] - '@nomicfoundation/edr-linux-x64-gnu@0.25.0': - resolution: {integrity: sha512-V0/Zjsd7WlRpwxtbtI1YFRaV0lF/+EtOHf5H01riCAZixK16N67PGY4QPwrZ/FQrk15bCzu/fFtgR5WpmFAuPg==} + '@nomicfoundation/edr-linux-x64-gnu@0.25.1': + resolution: {integrity: sha512-xo3yaYosl66AHs3VoQ+nTybaICiTf5x9TwTwuHkHYbsd6I9HWSp4bAk6JLTDQgV+l3VxQ54s1tElXmT6bUQX+Q==} engines: {node: '>= 22'} cpu: [x64] os: [linux] - '@nomicfoundation/edr-linux-x64-musl@0.25.0': - resolution: {integrity: sha512-oZHb4vFOeloPwXS9pJpf3z5/QSIaTMzxObbQ6OZXqg+oK1BNxk86wmgsaMlq/4kfcWVYcYQ6m57HCUWlzU1MZw==} + '@nomicfoundation/edr-linux-x64-musl@0.25.1': + resolution: {integrity: sha512-gz/FHo8/t4qd2bH21aPh2JPvSwvgMQBQO+6AJ8SufamjyxsUlFxW8fM6lTfwNXYfYT8+82hYl1/HdvgxkutDkA==} engines: {node: '>= 22'} cpu: [x64] os: [linux] - '@nomicfoundation/edr-win32-x64-msvc@0.25.0': - resolution: {integrity: sha512-uB0GT6iWOJu7qHEo4vNbr0yRedzuRCmOF+YkxXrQHaY2oKGcHpqZ0UnS1ak1NMZ2iyQWc2y5y8WYySNcwPq04g==} + '@nomicfoundation/edr-win32-x64-msvc@0.25.1': + resolution: {integrity: sha512-VDVWK4GITq9Udzf7zGLJLw01YJoje3hLC9j8n+0fP4cVIEKYwVtY3/iyQ9zbUDD7p3Gz0cE9rtlYDlyIu5TFwA==} engines: {node: '>= 22'} cpu: [x64] os: [win32] - '@nomicfoundation/edr@0.25.0': - resolution: {integrity: sha512-aO9XbrBwhKoP7O8fXVDJZR+4DJRGC1as2nsQ1V4MxnwxiZD5XfhrPSX3DE918O/1oLZ5HQ+n9e0d8D5P/JiHig==} + '@nomicfoundation/edr@0.25.1': + resolution: {integrity: sha512-yMCUTiEEdyuWN9na9RvKBD9du+C0fmnZUqVVQaJwATAY6qUyCZ3tkf4abnwEWt8s3oAfMx19HJiODmUnQgVjOQ==} engines: {node: '>= 22'} '@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.2': @@ -10108,36 +10108,36 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@nomicfoundation/edr-darwin-arm64@0.25.0': + '@nomicfoundation/edr-darwin-arm64@0.25.1': optional: true - '@nomicfoundation/edr-darwin-x64@0.25.0': + '@nomicfoundation/edr-darwin-x64@0.25.1': optional: true - '@nomicfoundation/edr-linux-arm64-gnu@0.25.0': + '@nomicfoundation/edr-linux-arm64-gnu@0.25.1': optional: true - '@nomicfoundation/edr-linux-arm64-musl@0.25.0': + '@nomicfoundation/edr-linux-arm64-musl@0.25.1': optional: true - '@nomicfoundation/edr-linux-x64-gnu@0.25.0': + '@nomicfoundation/edr-linux-x64-gnu@0.25.1': optional: true - '@nomicfoundation/edr-linux-x64-musl@0.25.0': + '@nomicfoundation/edr-linux-x64-musl@0.25.1': optional: true - '@nomicfoundation/edr-win32-x64-msvc@0.25.0': + '@nomicfoundation/edr-win32-x64-msvc@0.25.1': optional: true - '@nomicfoundation/edr@0.25.0': + '@nomicfoundation/edr@0.25.1': optionalDependencies: - '@nomicfoundation/edr-darwin-arm64': 0.25.0 - '@nomicfoundation/edr-darwin-x64': 0.25.0 - '@nomicfoundation/edr-linux-arm64-gnu': 0.25.0 - '@nomicfoundation/edr-linux-arm64-musl': 0.25.0 - '@nomicfoundation/edr-linux-x64-gnu': 0.25.0 - '@nomicfoundation/edr-linux-x64-musl': 0.25.0 - '@nomicfoundation/edr-win32-x64-msvc': 0.25.0 + '@nomicfoundation/edr-darwin-arm64': 0.25.1 + '@nomicfoundation/edr-darwin-x64': 0.25.1 + '@nomicfoundation/edr-linux-arm64-gnu': 0.25.1 + '@nomicfoundation/edr-linux-arm64-musl': 0.25.1 + '@nomicfoundation/edr-linux-x64-gnu': 0.25.1 + '@nomicfoundation/edr-linux-x64-musl': 0.25.1 + '@nomicfoundation/edr-win32-x64-msvc': 0.25.1 '@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.2': optional: true From 491f4336121a6d534107dcf33e472a07c2ebf116 Mon Sep 17 00:00:00 2001 From: John Kane Date: Wed, 18 Nov 2026 16:07:44 +0000 Subject: [PATCH 39/39] Apply suggestion from @kanej --- .changeset/edr-glibc-2-34.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/edr-glibc-2-34.md b/.changeset/edr-glibc-2-34.md index ceca78eb2b0..a0e3317aba7 100644 --- a/.changeset/edr-glibc-2-34.md +++ b/.changeset/edr-glibc-2-34.md @@ -2,4 +2,4 @@ "hardhat": minor --- -Raised the minimum glibc version of the prebuilt Linux gnu binaries of EDR from 2.30 to 2.34. +Raised the minimum glibc version of the prebuilt Linux gnu binaries of EDR from 2.29 to 2.34.