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

Function encodeStack

src/runtime.js:61–66  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

59}
60
61function encodeStack(stack) {
62 return stack.reduce((bytecode, word) => {
63 const value = getPushOp(word.toString(16));
64 return bytecode + `${value}`;
65 }, '');
66}
67
68function runCode(vm, bytecode, calldata, sourcemapOffset = 0, sourcemap = [], callvalue = 0, callerAddr = 0) {
69 if (calldata) {

Callers 1

RuntimeFunction · 0.85

Calls 1

getPushOpFunction · 0.85

Tested by

no test coverage detected