diff --git a/Makefile b/Makefile index 1e2c32c1..8467390a 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,4 @@ all: show-app default show-app: @echo ">>>>> Building at commit $(COMMIT)" -CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers - include $(BOLOS_SDK)/Makefile.standard_app diff --git a/doc/apdu.md b/doc/apdu.md index 37c098aa..61f6fa74 100644 --- a/doc/apdu.md +++ b/doc/apdu.md @@ -209,6 +209,10 @@ accepted, the signature of the message is returned. Messages sent in more than one packet will be refused. +If the `message` is a valid `baking message` (`Block` or `Consensus +operation`), no confirmation screens will be displayed and the +signature will be automatic. + See [the messages in the specification](signing.md#messages) and the [API](https://tezos.gitlab.io/shell/p2p_api.html). ##### Input data @@ -428,4 +432,11 @@ fixed message signed by the key associated with the `path` and `P2`. |--------|--------|------|------| | `0x80` | `0x0e` | `__` | `__` | -Alias for `SIGN` +Runs in the same way as `SIGN` except that the value returned, when *P1* is `0x01` or `0x81`, also contains the hash of the signed operation. + +#### Output data + +| Length | Description | +|--------------|---------------| +| `32` | The hash | +| `` | The signature | diff --git a/src/to_string.c b/src/to_string.c index 5dccde8a..c636a727 100644 --- a/src/to_string.c +++ b/src/to_string.c @@ -274,15 +274,11 @@ int microtez_to_string(char *const dest, size_t dest_size, uint64_t number) { // Eliminate trailing 0s char *start = tmp + sizeof(tmp) - DECIMAL_DIGITS; - char *end; - for (end = tmp + sizeof(tmp) - 1u; end >= start; end--) { - if (*end != '0') { - end++; - break; - } + size_t length = DECIMAL_DIGITS; + while ((length > 0u) && (start[length - 1u] == '0')) { + length--; } - size_t length = end - start; if ((dest_size - offset) < length) { return -1; } diff --git a/src/to_string.h b/src/to_string.h index c07505c0..fe2ab07d 100644 --- a/src/to_string.h +++ b/src/to_string.h @@ -98,13 +98,13 @@ int hwm_to_string(char *dest, size_t dest_size, high_watermark_t const *const hw int hwm_status_to_string(char *dest, size_t dest_size, volatile bool const *hwm_disabled); /** - * @brief Copies a string in a buffer + * @brief Copies a string in a buffer. * - * `src` may be unrelocated pointer to rodata. + * Returns -1 if the string is too large to fit in the buffer * * @param dest: output buffer - * @param dest_size: size of the buffer - * @param src: input to copy + * @param dest_size: size of the output buffer + * @param src: string to copy * @return int: size of the result, negative integer on failure */ int copy_string(char *const dest, size_t const dest_size, char const *const src); diff --git a/src/types.h b/src/types.h index 522c85a4..e10e1600 100644 --- a/src/types.h +++ b/src/types.h @@ -109,7 +109,7 @@ typedef struct { * @param in: bip32 path copied * @return bool: whether the copy was successful or not */ -static inline bool copy_bip32_path(bip32_path_t *const out, bip32_path_t volatile const *const in) { +static inline bool copy_bip32_path(bip32_path_t *const out, bip32_path_t const *const in) { if ((out == NULL) || (in == NULL)) { return false; } @@ -152,7 +152,7 @@ typedef struct { * @return bool: whether the copy was successful or not */ static inline bool copy_bip32_path_with_curve(bip32_path_with_curve_t *const out, - bip32_path_with_curve_t volatile const *const in) { + bip32_path_with_curve_t const *const in) { if ((out == NULL) || (in == NULL) || !copy_bip32_path(&out->bip32_path, &in->bip32_path)) { return false; } diff --git a/src/ui_nbgl.c b/src/ui_nbgl.c index c3ebbfda..407c7924 100644 --- a/src/ui_nbgl.c +++ b/src/ui_nbgl.c @@ -97,7 +97,7 @@ static bool navigation_cb_baking(uint8_t page, nbgl_pageContent_t* content) { content->type = INFOS_LIST; content->infosList.nbInfos = 3; content->infosList.infoTypes = bakeInfoTypes; - content->infosList.infoContents = bakeInfoContents; + content->infosList.infoContents = (const char* const*) bakeInfoContents; break; case 1: switches[HWM_ENABLED_TOKEN_ID].initState = (nbgl_state_t) (!hwm_disabled); diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00000.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00000.png new file mode 100644 index 00000000..4d1d8b6b Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00000.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00001.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00001.png new file mode 100644 index 00000000..373ff82c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00001.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00002.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00002.png new file mode 100644 index 00000000..53582313 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00002.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00003.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00003.png new file mode 100644 index 00000000..2f2e4157 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00003.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00004.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00004.png new file mode 100644 index 00000000..0ed54235 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00004.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00005.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00005.png new file mode 100644 index 00000000..660f665e Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00005.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00006.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00006.png new file mode 100644 index 00000000..2f90a3a5 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00006.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00007.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00007.png new file mode 100644 index 00000000..ce795f34 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_1/00007.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00000.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00000.png new file mode 100644 index 00000000..4d1d8b6b Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00000.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00001.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00001.png new file mode 100644 index 00000000..373ff82c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00001.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00002.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00002.png new file mode 100644 index 00000000..53582313 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00002.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00003.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00003.png new file mode 100644 index 00000000..2f2e4157 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00003.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00004.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00004.png new file mode 100644 index 00000000..b03234ba Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00004.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00005.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00005.png new file mode 100644 index 00000000..660f665e Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00005.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00006.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00006.png new file mode 100644 index 00000000..2f90a3a5 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00006.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00007.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00007.png new file mode 100644 index 00000000..ce795f34 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_20000/00007.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00000.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00000.png new file mode 100644 index 00000000..4d1d8b6b Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00000.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00001.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00001.png new file mode 100644 index 00000000..373ff82c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00001.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00002.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00002.png new file mode 100644 index 00000000..53582313 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00002.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00003.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00003.png new file mode 100644 index 00000000..2f2e4157 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00003.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00004.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00004.png new file mode 100644 index 00000000..bc761f2f Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00004.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00005.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00005.png new file mode 100644 index 00000000..660f665e Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00005.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00006.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00006.png new file mode 100644 index 00000000..2f90a3a5 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00006.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00007.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00007.png new file mode 100644 index 00000000..ce795f34 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_300000000/00007.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00000.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00000.png new file mode 100644 index 00000000..4d1d8b6b Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00000.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00001.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00001.png new file mode 100644 index 00000000..373ff82c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00001.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00002.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00002.png new file mode 100644 index 00000000..53582313 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00002.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00003.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00003.png new file mode 100644 index 00000000..2f2e4157 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00003.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00004.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00004.png new file mode 100644 index 00000000..70f785c7 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00004.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00005.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00005.png new file mode 100644 index 00000000..660f665e Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00005.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00006.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00006.png new file mode 100644 index 00000000..2f90a3a5 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00006.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00007.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00007.png new file mode 100644 index 00000000..ce795f34 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_50000060000/00007.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00000.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00000.png new file mode 100644 index 00000000..4d1d8b6b Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00000.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00001.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00001.png new file mode 100644 index 00000000..373ff82c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00001.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00002.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00002.png new file mode 100644 index 00000000..53582313 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00002.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00003.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00003.png new file mode 100644 index 00000000..2f2e4157 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00003.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00004.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00004.png new file mode 100644 index 00000000..9b94d36c Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00004.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00005.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00005.png new file mode 100644 index 00000000..660f665e Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00005.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00006.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00006.png new file mode 100644 index 00000000..2f90a3a5 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00006.png differ diff --git a/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00007.png b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00007.png new file mode 100644 index 00000000..ce795f34 Binary files /dev/null and b/test/snapshots/nanos/test_sign_delegation_fee/fee_789789789/00007.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00000.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00000.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00001.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00001.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00002.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00002.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00003.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00003.png new file mode 100644 index 00000000..9d30e366 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00003.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00004.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00004.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00005.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00005.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00006.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_1/00006.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00000.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00000.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00001.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00001.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00002.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00002.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00003.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00003.png new file mode 100644 index 00000000..bab5e3e8 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00003.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00004.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00004.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00005.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00005.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00006.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_20000/00006.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00000.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00000.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00001.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00001.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00002.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00002.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00003.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00003.png new file mode 100644 index 00000000..c28ccd59 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00003.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00004.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00004.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00005.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00005.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00006.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_300000000/00006.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00000.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00000.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00001.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00001.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00002.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00002.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00003.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00003.png new file mode 100644 index 00000000..9b029339 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00003.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00004.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00004.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00005.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00005.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00006.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_50000060000/00006.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00000.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00000.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00001.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00001.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00002.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00002.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00003.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00003.png new file mode 100644 index 00000000..88ecdadd Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00003.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00004.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00004.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00005.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00005.png differ diff --git a/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00006.png b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanosp/test_sign_delegation_fee/fee_789789789/00006.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00000.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00000.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00001.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00001.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00002.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00002.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00003.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00003.png new file mode 100644 index 00000000..9d30e366 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00003.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00004.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00004.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00005.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00005.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00006.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_1/00006.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00000.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00000.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00001.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00001.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00002.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00002.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00003.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00003.png new file mode 100644 index 00000000..bab5e3e8 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00003.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00004.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00004.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00005.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00005.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00006.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_20000/00006.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00000.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00000.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00001.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00001.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00002.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00002.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00003.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00003.png new file mode 100644 index 00000000..c28ccd59 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00003.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00004.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00004.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00005.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00005.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00006.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_300000000/00006.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00000.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00000.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00001.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00001.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00002.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00002.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00003.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00003.png new file mode 100644 index 00000000..9b029339 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00003.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00004.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00004.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00005.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00005.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00006.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_50000060000/00006.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00000.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00000.png new file mode 100644 index 00000000..1ef108c4 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00000.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00001.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00001.png new file mode 100644 index 00000000..0ef8964e Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00001.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00002.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00002.png new file mode 100644 index 00000000..c18fc645 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00002.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00003.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00003.png new file mode 100644 index 00000000..88ecdadd Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00003.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00004.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00004.png new file mode 100644 index 00000000..739d0b16 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00004.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00005.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00005.png new file mode 100644 index 00000000..ac17dc75 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00005.png differ diff --git a/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00006.png b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00006.png new file mode 100644 index 00000000..65788722 Binary files /dev/null and b/test/snapshots/nanox/test_sign_delegation_fee/fee_789789789/00006.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_1/00000.png b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00000.png new file mode 100644 index 00000000..11089733 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00000.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_1/00001.png b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00001.png new file mode 100644 index 00000000..ec3205d1 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00001.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_1/00002.png b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00002.png new file mode 100644 index 00000000..a187bb3f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00002.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_1/00003.png b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00003.png new file mode 100644 index 00000000..732d0574 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00003.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_1/00004.png b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00004.png new file mode 100644 index 00000000..932d9e23 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_1/00004.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00000.png b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00000.png new file mode 100644 index 00000000..11089733 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00000.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00001.png b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00001.png new file mode 100644 index 00000000..9989103f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00001.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00002.png b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00002.png new file mode 100644 index 00000000..a187bb3f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00002.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00003.png b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00003.png new file mode 100644 index 00000000..732d0574 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00003.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00004.png b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00004.png new file mode 100644 index 00000000..932d9e23 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_20000/00004.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00000.png b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00000.png new file mode 100644 index 00000000..11089733 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00000.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00001.png b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00001.png new file mode 100644 index 00000000..f0c2a85f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00001.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00002.png b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00002.png new file mode 100644 index 00000000..a187bb3f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00002.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00003.png b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00003.png new file mode 100644 index 00000000..732d0574 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00003.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00004.png b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00004.png new file mode 100644 index 00000000..932d9e23 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_300000000/00004.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00000.png b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00000.png new file mode 100644 index 00000000..11089733 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00000.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00001.png b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00001.png new file mode 100644 index 00000000..8e04bc2e Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00001.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00002.png b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00002.png new file mode 100644 index 00000000..a187bb3f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00002.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00003.png b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00003.png new file mode 100644 index 00000000..732d0574 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00003.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00004.png b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00004.png new file mode 100644 index 00000000..932d9e23 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_50000060000/00004.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00000.png b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00000.png new file mode 100644 index 00000000..11089733 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00000.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00001.png b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00001.png new file mode 100644 index 00000000..f885c6dc Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00001.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00002.png b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00002.png new file mode 100644 index 00000000..a187bb3f Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00002.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00003.png b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00003.png new file mode 100644 index 00000000..732d0574 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00003.png differ diff --git a/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00004.png b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00004.png new file mode 100644 index 00000000..932d9e23 Binary files /dev/null and b/test/snapshots/stax/test_sign_delegation_fee/fee_789789789/00004.png differ diff --git a/test/test_instructions.py b/test/test_instructions.py index 40f707d9..ac7284aa 100644 --- a/test/test_instructions.py +++ b/test/test_instructions.py @@ -1086,6 +1086,44 @@ def test_sign_delegation( account.check_signature(signature, bytes(raw_delegation)) + +PARAMETERS_SIGN_DELEGATION_FEES = [ + 1, + 20000, + 300000000, + 50000060000, + 789789789 +] + +@pytest.mark.parametrize("fee", PARAMETERS_SIGN_DELEGATION_FEES) +def test_sign_delegation_fee( + fee: int, + tezos_navigator: TezosNavigator) -> None: + """Test fee display on delegation.""" + + account = DEFAULT_ACCOUNT + snap_path = Path(f"fee_{fee}") + + tezos_navigator.setup_app_context( + account, + DEFAULT_CHAIN_ID, + main_hwm=Hwm(0, 0), + test_hwm=Hwm(0, 0) + ) + + delegation = Delegation( + delegate=account.public_key_hash, + source=account.public_key_hash, + fee=fee, + ) + + tezos_navigator.sign_delegation( + account, + delegation, + snap_path=snap_path + ) + + PARAMETERS_SIGN_DELEGATION_CONSTRAINTS = [ ( DEFAULT_ACCOUNT_2, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT,