1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

ethereum: update to new API

This commit is contained in:
Pavol Rusnak 2018-06-27 17:00:39 +02:00
parent ddc51a39e2
commit e8a46d46c2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 4 additions and 4 deletions

View File

@ -293,7 +293,7 @@ static void layoutEthereumConfirmTx(const uint8_t *to, uint32_t to_len, const ui
if (to_len) {
char to_str[41];
ethereum_address_checksum(to, to_str);
ethereum_address_checksum(to, to_str, false, 0);
memcpy(_to1 + 5, to_str, 10);
memcpy(_to2, to_str + 10, 15);
memcpy(_to3, to_str + 25, 15);

View File

@ -36,7 +36,7 @@ void fsm_msgEthereumGetAddress(EthereumGetAddress *msg)
strlcpy(desc, "Address:", sizeof(desc));
char address[43] = { '0', 'x' };
ethereum_address_checksum(resp->address.bytes, address + 2);
ethereum_address_checksum(resp->address.bytes, address + 2, false, 0);
if (!fsm_layoutAddress(address, desc, false, 0, msg->address_n, msg->address_n_count)) {
return;
@ -80,7 +80,7 @@ void fsm_msgEthereumVerifyMessage(EthereumVerifyMessage *msg)
}
char address[43] = { '0', 'x' };
ethereum_address_checksum(msg->address.bytes, address + 2);
ethereum_address_checksum(msg->address.bytes, address + 2, false, 0);
layoutVerifyAddress(address);
if (!protectButton(ButtonRequestType_ButtonRequest_Other, false)) {
fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL);

@ -1 +1 @@
Subproject commit f586155d808be7467e31da907b0106b4c31a0d1d
Subproject commit 3e8974ff8871263a70b7fbb9a27a1da5b0d810f7