1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-15 09:50:57 +00:00

Don't include 0x in address display, so everything fits

This commit is contained in:
Nick Johnson 2016-05-26 21:56:31 +01:00 committed by Alex Beregszaszi
parent 7432805b6a
commit 4a195ebd86

View File

@ -678,10 +678,8 @@ void fsm_msgEthereumGetAddress(EthereumGetAddress *msg)
char desc[16];
strlcpy(desc, "Address:", sizeof(desc));
char address[43];
address[0] = '0';
address[1] = 'x';
data2hex(resp->address.bytes, 20, address + 2);
char address[41];
data2hex(resp->address.bytes, 20, address);
layoutAddress(address, desc);
if (!protectButton(ButtonRequestType_ButtonRequest_Address, true)) {