hardhat-tracer
Version:
Hardhat Tracer plugin
24 lines • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIfOpcodesAreValid = void 0;
function checkIfOpcodesAreValid(opcodes, vm) {
// TODO add a list of all valid opcodes, need to keep it up to date
// this is just for sanity purpose
//
// TODO fix this code
// fetch the opcodes which work on this VM
// const activeOpcodesMap = new Map<string, boolean>();
// for (const opcode of getOpcodesForHF(vm.common).opcodes.values()) {
// activeOpcodesMap.set(opcode.fullName, true);
// }
// check if there are any opcodes specified in tracer which do not work
// for (const opcode of opcodes.keys()) {
// if (!activeOpcodesMap.get(opcode)) {
// throw new Error(
// `[hardhat-tracer]: The opcode "${opcode}" is not active on this VM. If the opcode name is misspelled in the config, please correct it.`
// );
// }
// }
}
exports.checkIfOpcodesAreValid = checkIfOpcodesAreValid;
//# sourceMappingURL=check-opcodes.js.map