1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

fix(legacy): recognize SignTXEIP1559 on legacy build

[no changelog]
This commit is contained in:
matejcik 2021-08-10 10:56:13 +02:00
parent 38fa9197ca
commit a39870449f
3 changed files with 19 additions and 0 deletions

View File

@ -103,6 +103,7 @@ void fsm_msgEthereumGetPublicKey(const EthereumGetPublicKey *msg);
void fsm_msgEthereumSignTx(
EthereumSignTx
*msg); // not const because we mutate transaction during validation
void fsm_msgEthereumSignTxEIP1559(const EthereumSignTxEIP1559 *msg);
void fsm_msgEthereumTxAck(const EthereumTxAck *msg);
void fsm_msgEthereumSignMessage(const EthereumSignMessage *msg);
void fsm_msgEthereumVerifyMessage(const EthereumVerifyMessage *msg);

View File

@ -76,6 +76,11 @@ void fsm_msgEthereumTxAck(const EthereumTxAck *msg) {
ethereum_signing_txack(msg);
}
void fsm_msgEthereumSignTxEIP1559(const EthereumSignTxEIP1559 *msg) {
(void)msg;
fsm_sendFailure(FailureType_Failure_UnexpectedMessage, _("Not implemented"));
}
void fsm_msgEthereumGetAddress(const EthereumGetAddress *msg) {
RESP_INIT(EthereumAddress);

View File

@ -6,6 +6,19 @@ EthereumSignTx.to max_size:43
EthereumSignTx.value max_size:32
EthereumSignTx.data_initial_chunk max_size:1024
EthereumSignTxEIP1559.address_n max_count:8
EthereumSignTxEIP1559.nonce max_size:32
EthereumSignTxEIP1559.max_gas_fee max_size:32
EthereumSignTxEIP1559.max_priority_fee max_size:32
EthereumSignTxEIP1559.gas_limit max_size:32
EthereumSignTxEIP1559.to max_size:32
EthereumSignTxEIP1559.value max_size:32
EthereumSignTxEIP1559.data_initial_chunk max_size:1024
EthereumSignTxEIP1559.access_list max_count:8
EthereumAccessList.address max_size:32
EthereumAccessList.storage_keys max_count:8 max_size:32
EthereumTxRequest.signature_r max_size:32
EthereumTxRequest.signature_s max_size:32