implement EIP211: returnDataCopy and returnDataSize opcode

This commit is contained in:
andri lim 2019-04-22 16:41:40 +07:00
parent dd89af6d3d
commit 52caf0c248
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 0 deletions

View File

@ -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)