UNPKG

hardhat-tracer

Version:

Hardhat Tracer plugin

15 lines 516 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); function parse(step) { const offset = Number(step.stack[step.stack.length - 1].toString()); const length = Number(step.stack[step.stack.length - 2].toString()); const data = (0, utils_1.memorySlice)(step.memory, offset, length); return { opcode: "RETURN", params: { data }, noFormat: true, }; } exports.default = { parse }; //# sourceMappingURL=return.js.map