From a30542f8779222712ae8da9b0d3d9dd19f98e51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Thu, 18 Jul 2024 10:22:44 +0200 Subject: [PATCH] Add Ticket to the formatter --- app/src/parser/formatting.c | 1 + app/src/parser/formatting.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/parser/formatting.c b/app/src/parser/formatting.c index 3c63adf5b..5f8f084f7 100644 --- a/app/src/parser/formatting.c +++ b/app/src/parser/formatting.c @@ -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 * diff --git a/app/src/parser/formatting.h b/app/src/parser/formatting.h index 6e4306897..878d4dd62 100644 --- a/app/src/parser/formatting.h +++ b/app/src/parser/formatting.h @@ -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)