From 6308202cbbda9a5ad7f7ede4dd1c0a65f8254b9c Mon Sep 17 00:00:00 2001 From: BTChip github Date: Mon, 6 Aug 2018 23:05:22 +0200 Subject: [PATCH] Fix EIP 1191 --- src_common/ethUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_common/ethUtils.c b/src_common/ethUtils.c index cf98ea8..c257efd 100644 --- a/src_common/ethUtils.c +++ b/src_common/ethUtils.c @@ -216,9 +216,9 @@ void getEthAddressStringFromBinary(uint8_t *address, uint8_t *out, hashDigit = hashDigit & 0x0f; } if ((hashDigit > 7) && (tmp[i] > '9')) { - out[i] = tmp[i] - 'a' + 'A'; + out[i] = tmp[offset + i] - 'a' + 'A'; } else { - out[i] = tmp[i]; + out[i] = tmp[offset + i]; } } out[40] = '\0';