feat: implement 0x37 - CALLDATACOPY #99
Labels
cairo
cairo
Context: isolated
no previous knowledge of the codebase required
Type: feature
a new feature to implement
Since
Frontier
Group
Environmental Information
Description
0x37 - CALLDATACOPY
Index 1 is top of the stack. See PUSH.
Notes
For out of bound bytes, 0s will be copied.
Stack input
destOffset
: byte offset in the memory where the result will be copied.offset
: byte offset in the calldata to copy.size
: byte size to copy.Examples
Calldata
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Reproduce in playground.
Error cases
The state changes done by the current context are reverted in those cases:
Gas
The memory expansion cost explanation can be found here.
The text was updated successfully, but these errors were encountered: