Read the bytecode at a given offset #31
Labels
Context: intricated
deep understanding of the codebase required
Difficulty: intermediate
require some notions, but can be learned while doing
Duration: 1 day
will take about one day
Techno: cairo
cairo
Type: feature
a new feature to implement
Context
pc
points at the instruction currently being processed by the EVM, and is represented as a byte offset in the bytecode.Goal
Have an internal function to read the current opcode at a given
pc
value. Keep in mind that some opcodes are expressed on several bytes, because they hold a value alongside with the actual opcode value.PUSH1
is one of these for example.Expectations
pc
value and returns the opcode at the given offsetJUMPDEST
JUMPDEST
for example, and two bytes forPUSH1
The text was updated successfully, but these errors were encountered: