UNPKG

hardhat-tracer

Version:

Hardhat Tracer plugin

26 lines 913 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); function parse(step) { const offset = (0, utils_1.parseBytes32)(step.stack[step.stack.length - 1].toString(16)); const next = 1; // get stack just after this opcode return { isAwaitedItem: true, next, parse: (stepNext) => ({ opcode: "MLOAD", params: { offset, value: (0, utils_1.parseBytes32)(stepNext.stack[stepNext.stack.length - 1].toString(16)), }, format() { return format(this); }, }), }; } function format(item) { return `${(0, utils_1.colorLabel)("[MLOAD]")} ${(0, utils_1.colorMload)(item.params.offset)}${(0, utils_1.colorValue)(item.params.value)}`; } exports.default = { parse, format }; //# sourceMappingURL=mload.js.map