mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-05 20:31:01 +00:00
Don't include 0x in address display, so everything fits
This commit is contained in:
parent
7432805b6a
commit
4a195ebd86
@ -678,10 +678,8 @@ void fsm_msgEthereumGetAddress(EthereumGetAddress *msg)
|
|||||||
char desc[16];
|
char desc[16];
|
||||||
strlcpy(desc, "Address:", sizeof(desc));
|
strlcpy(desc, "Address:", sizeof(desc));
|
||||||
|
|
||||||
char address[43];
|
char address[41];
|
||||||
address[0] = '0';
|
data2hex(resp->address.bytes, 20, address);
|
||||||
address[1] = 'x';
|
|
||||||
data2hex(resp->address.bytes, 20, address + 2);
|
|
||||||
|
|
||||||
layoutAddress(address, desc);
|
layoutAddress(address, desc);
|
||||||
if (!protectButton(ButtonRequestType_ButtonRequest_Address, true)) {
|
if (!protectButton(ButtonRequestType_ButtonRequest_Address, true)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user