Skip to content

Commit

Permalink
Merge pull request #255 from trilitech/palmer@functori@add-michelson-…
Browse files Browse the repository at this point in the history
…primitive-D_Ticket

Add michelson `D_Ticket` to the formatter
  • Loading branch information
spalmer25 authored Jul 18, 2024
2 parents c44150e + a30542f commit ce9343f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/parser/formatting.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const char *const tz_michelson_op_names_ordered[TZ_LAST_MICHELSON_OPCODE + 1]
"TICKET", // 154
"BYTES", // 155
"NAT", // 156
"Ticket", // 157
};

const char *
Expand Down
5 changes: 4 additions & 1 deletion app/src/parser/formatting.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ typedef enum {
TZ_MICHELSON_OP_EMIT = 151,
TZ_MICHELSON_OP_Lambda_rec = 152,
TZ_MICHELSON_OP_LAMBDA_REC = 153,
TZ_MICHELSON_OP_TICKET = 154
TZ_MICHELSON_OP_TICKET = 154,
TZ_MICHELSON_OP_BYTES = 155,
TZ_MICHELSON_OP_NAT = 156,
TZ_MICHELSON_OP_Ticket = 157
} tz_michelson_opcode;

#define TZ_DECIMAL_BUFFER_SIZE(_l) ((((_l)*241) / 100) + 1)
Expand Down

0 comments on commit ce9343f

Please sign in to comment.