MCPcopy Create free account
hub / github.com/AztecProtocol/huff / getPushOp

Function getPushOp

src/runtime.js:47–51  ·  view source on GitHub ↗
(hex)

Source from the content-addressed store, hash-verified

45}
46
47function getPushOp(hex) {
48 const data = utils.formatEvenBytes(hex);
49 const opcode = utils.toHex(95 + data.length / 2);
50 return `${opcode}${data}`;
51}
52
53function encodeMemory(memory) {
54 return memory.reduce((bytecode, { index, value }) => {

Callers 2

encodeMemoryFunction · 0.85
encodeStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected