mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-27 20:45:48 +00:00
implement EIP211: returnDataCopy and returnDataSize opcode
This commit is contained in:
parent
dd89af6d3d
commit
52caf0c248
@ -199,6 +199,8 @@ let SpuriousOpDispatch {.compileTime.}: array[Op, NimNode] = genSpuriousJumpTabl
|
|||||||
proc genByzantiumJumpTable(ops: array[Op, NimNode]): array[Op, NimNode] {.compileTime.} =
|
proc genByzantiumJumpTable(ops: array[Op, NimNode]): array[Op, NimNode] {.compileTime.} =
|
||||||
result = ops
|
result = ops
|
||||||
result[Revert] = newIdentNode "revert"
|
result[Revert] = newIdentNode "revert"
|
||||||
|
result[ReturnDataSize] = newIdentNode "returnDataSize"
|
||||||
|
result[ReturnDataCopy] = newIdentNode "returnDataCopy"
|
||||||
|
|
||||||
let ByzantiumOpDispatch {.compileTime.}: array[Op, NimNode] = genByzantiumJumpTable(SpuriousOpDispatch)
|
let ByzantiumOpDispatch {.compileTime.}: array[Op, NimNode] = genByzantiumJumpTable(SpuriousOpDispatch)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user