The assembly for a smart contract looks like there is a single entry point and a series of if/thens or a switch to jump to the entry point of each function.

Is it possible to skip the lookup and jump straight to the function's code if you already know its offset?


The opcodes that exist to call into a contract (call, delegatecall, staticall) take no parameter to jump to a location in the bytecode. All of these calls will begin execution at the very beginning of the bytecode and there is no way to alter this.

  • That's what I thought, but I wanted to be sure. Thank you. Nov 18 '18 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.