diff --git a/src/handle_get_printable_amount.c b/src/handle_get_printable_amount.c index a321b4f1c..5a70e881c 100644 --- a/src/handle_get_printable_amount.c +++ b/src/handle_get_printable_amount.c @@ -31,6 +31,10 @@ void handle_get_printable_amount(get_printable_amount_parameters_t* params, } // If the amount is a fee, the ticker should be the chain's native currency if (params->is_fee) { + // fallback mechanism in the absence of chain ID in swap config + if (chain_id == 0) { + chain_id = config->chainId; + } strlcpy(ticker, get_displayable_ticker(&chain_id, config), sizeof(ticker)); decimals = WEI_TO_ETHER; } diff --git a/src/handle_swap_sign_transaction.c b/src/handle_swap_sign_transaction.c index f0ca62178..fc7167a56 100644 --- a/src/handle_swap_sign_transaction.c +++ b/src/handle_swap_sign_transaction.c @@ -49,6 +49,10 @@ bool copy_transaction_parameters(create_transaction_parameters_t* sign_transacti return false; } + // fallback mechanism in the absence of chain ID in swap config + if (chain_id == 0) { + chain_id = config->chainId; + } // If the amount is a fee, its value is nominated in ETH even if we're doing an ERC20 swap strlcpy(ticker, get_displayable_ticker(&chain_id, config), sizeof(ticker)); decimals = WEI_TO_ETHER; diff --git a/src/network.c b/src/network.c index 74c5feefe..24349c3df 100644 --- a/src/network.c +++ b/src/network.c @@ -11,6 +11,8 @@ typedef struct network_info_s { uint64_t chain_id; } network_info_t; +static const char *unknown_ticker = "???"; + // Mappping of chain ids to networks. static const network_info_t NETWORK_MAPPING[] = { {.chain_id = 1, .name = "Ethereum", .ticker = "ETH"}, @@ -140,7 +142,11 @@ const char *get_displayable_ticker(const uint64_t *chain_id, const chain_config_ const char *ticker = get_network_ticker_from_chain_id(chain_id); if (ticker == NULL) { - ticker = chain_cfg->coinName; + if (*chain_id == chain_cfg->chainId) { + ticker = chain_cfg->coinName; + } else { + ticker = unknown_ticker; + } } return ticker; } diff --git a/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00001.png b/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00001.png index f9840e3ab..23d61ed89 100644 Binary files a/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00001.png and b/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00001.png differ diff --git a/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00004.png b/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00004.png index 1bcb78761..c2a8d9070 100644 Binary files a/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00004.png and b/tests/ragger/snapshots/nanosp/domain_name_unknown_chain/00004.png differ diff --git a/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00001.png b/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00001.png index f9840e3ab..23d61ed89 100644 Binary files a/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00001.png and b/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00001.png differ diff --git a/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00004.png b/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00004.png index 1bcb78761..c2a8d9070 100644 Binary files a/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00004.png and b/tests/ragger/snapshots/nanox/domain_name_unknown_chain/00004.png differ diff --git a/tests/ragger/snapshots/stax/domain_name_unknown_chain/00001.png b/tests/ragger/snapshots/stax/domain_name_unknown_chain/00001.png index 1cebd8d30..5962c92ea 100644 Binary files a/tests/ragger/snapshots/stax/domain_name_unknown_chain/00001.png and b/tests/ragger/snapshots/stax/domain_name_unknown_chain/00001.png differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00000.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00000.png deleted file mode 100644 index 8d84cc70f..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00000.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00001.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00001.png deleted file mode 100644 index 7ebda4f3a..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00001.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00002.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00002.png deleted file mode 100644 index c2af54e96..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00002.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00003.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00003.png deleted file mode 100644 index a54fefd4c..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00003.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00004.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00004.png deleted file mode 100644 index 8656b8175..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00004.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00005.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00005.png deleted file mode 100644 index fd3155c0d..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00005.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00006.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00006.png deleted file mode 100644 index c63f25f8d..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00006.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00007.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00007.png deleted file mode 100644 index f0a7d0e1a..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00007.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00008.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00008.png deleted file mode 100644 index c84d3ec3e..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00008.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00009.png b/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00009.png deleted file mode 100644 index 1c9156c31..000000000 Binary files a/tests/speculos/screenshots/sign/nanos/dai_coin_type_on_network_5234/00009.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00000.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00000.png deleted file mode 100644 index 487ea10fc..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00000.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00001.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00001.png deleted file mode 100644 index 0976a317a..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00001.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00002.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00002.png deleted file mode 100644 index 0f18eeec9..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00002.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00003.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00003.png deleted file mode 100644 index 7037eb59e..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00003.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00004.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00004.png deleted file mode 100644 index 1bcb78761..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00004.png and /dev/null differ diff --git a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00005.png b/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00005.png deleted file mode 100644 index 570ce28d5..000000000 Binary files a/tests/speculos/screenshots/sign/nanox/dai_coin_type_on_network_5234/00005.png and /dev/null differ diff --git a/tests/speculos/test_sign_cmd.py b/tests/speculos/test_sign_cmd.py index 588e7aa06..90879acd3 100644 --- a/tests/speculos/test_sign_cmd.py +++ b/tests/speculos/test_sign_cmd.py @@ -83,90 +83,6 @@ def test_sign_simple(cmd): assert v == 0x26 # 38 assert r.hex() == "6f389d15320f0501383526ed03de917c14212716f09a262dbc98431086a5db49" assert s.hex() == "0dc994b7b97230bb35fdf6fec2f4d8ff4cfb8bfeb2a652c364c738ff033c05dd" - - -def test_sign_dai_coin_type_on_network_5234(cmd): - result: list = [] - - # DAI coin type - bip32_path="44'/700'/1'/0/0" - - transaction = Transaction( - txType=0xEB, - nonce=0, - gasPrice=0x0306dc4200, - gasLimit=0x5208, - to="0x5a321744667052affa8386ed49e00ef223cbffc3", - value=0x6f9c9e7bf61818, - chainID=5243, - ) - - with cmd.simple_sign_tx(bip32_path=bip32_path, transaction=transaction, result=result) as ex: - sleep(0.5) - - if cmd.model == "nanos": - # Review transaction - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00000.png") - cmd.client.press_and_release('right') - - # Amount 1/3, 2/3, 3/3 - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00001.png") - cmd.client.press_and_release('right') - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00002.png") - cmd.client.press_and_release('right') - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00003.png") - cmd.client.press_and_release('right') - - # Address 1/3, 2/3, 3/3 - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00004.png") - cmd.client.press_and_release('right') - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00005.png") - cmd.client.press_and_release('right') - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00006.png") - cmd.client.press_and_release('right') - - # Network 5243 - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00007.png") - cmd.client.press_and_release('right') - - # Max Fees - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00008.png") - cmd.client.press_and_release('right') - - # Accept and send - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00009.png") - cmd.client.press_and_release('both') - - if cmd.model == "nanox" or cmd.model == "nanosp": - # Review transaction - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00000.png") - cmd.client.press_and_release('right') - - # Amount - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00001.png") - cmd.client.press_and_release('right') - - # Address - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00002.png") - cmd.client.press_and_release('right') - - # Network 5243 - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00003.png") - cmd.client.press_and_release('right') - - # Max Fees - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00004.png") - cmd.client.press_and_release('right') - - # Accept and send - compare_screenshot(cmd, f"screenshots/sign/{PATH_IMG[cmd.model]}/dai_coin_type_on_network_5234/00005.png") - cmd.client.press_and_release('both') - - v, r, s = result - - assert v == 0x1A # 26 - assert r.hex() == "7ebfa5d5cac1e16bb1f1a8c67706b5c6019c0f198df6bb44e742a9de72330961" - assert s.hex() == "537419d8d1443d38ea87943c110789decb43b8f4fea8fae256fe842f669da634" def test_sign_reject(cmd): diff --git a/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00012.png b/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00012.png index 3b16ec02c..b729685dc 100644 Binary files a/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00012.png and b/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00012.png differ diff --git a/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png b/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png deleted file mode 120000 index 79f379fcb..000000000 --- a/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png +++ /dev/null @@ -1 +0,0 @@ -00013.png \ No newline at end of file diff --git a/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png b/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png new file mode 100644 index 000000000..1c9156c31 Binary files /dev/null and b/tests/zemu/snapshots/nanos_starkware_usdt_deposit/00015.png differ diff --git a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00001.png b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00001.png index 7ebda4f3a..73ac9f618 100644 Binary files a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00001.png and b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00001.png differ diff --git a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00008.png b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00008.png index c84d3ec3e..fff41ba06 100644 Binary files a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00008.png and b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00008.png differ diff --git a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png deleted file mode 120000 index 489390ada..000000000 --- a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png +++ /dev/null @@ -1 +0,0 @@ -00009.png \ No newline at end of file diff --git a/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png new file mode 100644 index 000000000..1c9156c31 Binary files /dev/null and b/tests/zemu/snapshots/nanos_transfer_112233445566_network/00011.png differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00000.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00000.png deleted file mode 100644 index 8d84cc70f..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00000.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00001.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00001.png deleted file mode 100644 index 7ebda4f3a..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00001.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00002.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00002.png deleted file mode 100644 index c2af54e96..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00002.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00003.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00003.png deleted file mode 100644 index a54fefd4c..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00003.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00004.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00004.png deleted file mode 100644 index 8656b8175..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00004.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00005.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00005.png deleted file mode 100644 index fd3155c0d..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00005.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00006.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00006.png deleted file mode 100644 index c63f25f8d..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00006.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00007.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00007.png deleted file mode 100644 index e1d28613d..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00007.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00008.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00008.png deleted file mode 100644 index c84d3ec3e..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00008.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00009.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00009.png deleted file mode 100644 index 1c9156c31..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00009.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00010.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00010.png deleted file mode 100644 index 9c7e7049c..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00010.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00011.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00011.png deleted file mode 120000 index 489390ada..000000000 --- a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00011.png +++ /dev/null @@ -1 +0,0 @@ -00009.png \ No newline at end of file diff --git a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00012.png b/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00012.png deleted file mode 100644 index ce795f34e..000000000 Binary files a/tests/zemu/snapshots/nanos_transfer_ethereum_5234_network/00012.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00000.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00000.png deleted file mode 100644 index 487ea10fc..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00000.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00001.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00001.png deleted file mode 100644 index 0976a317a..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00001.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00002.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00002.png deleted file mode 100644 index 0f18eeec9..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00002.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00003.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00003.png deleted file mode 100644 index 0423eb5fc..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00003.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00004.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00004.png deleted file mode 100644 index 70c1b9a68..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00004.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00005.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00005.png deleted file mode 100644 index 570ce28d5..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00005.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00006.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00006.png deleted file mode 100644 index c9222461c..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00006.png and /dev/null differ diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00007.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00007.png deleted file mode 120000 index 7159a1242..000000000 --- a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00007.png +++ /dev/null @@ -1 +0,0 @@ -00005.png \ No newline at end of file diff --git a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00008.png b/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00008.png deleted file mode 100644 index a58590b98..000000000 Binary files a/tests/zemu/snapshots/nanox_transfer_ethereum_5234_network/00008.png and /dev/null differ diff --git a/tests/zemu/src/send.test.js b/tests/zemu/src/send.test.js index ad83a4cdd..1634974c2 100644 --- a/tests/zemu/src/send.test.js +++ b/tests/zemu/src/send.test.js @@ -36,25 +36,3 @@ nano_models.forEach(function(model) { await expect(tx).rejects.toEqual(new TransportStatusError(0x6807)); })); }); - -nano_models.forEach(function(model) { - test('[Nano ' + model.letter + '] Transfer Ether on network 5234 on Ethereum app', zemu(model, async (sim, eth) => { - - const tx = eth.signTransaction( - "44'/60'/1'/0/0", - 'ED44850306DC4200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF61818808214728080', - ); - - await waitForAppScreen(sim); - let clicks; - if (model.letter === 'S') clicks = 10; - else clicks = 6; - await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum_5234_network', [clicks, -1, 0]); - - await expect(tx).resolves.toEqual({ - "r": "07a7982dfd16360c96a03467877d0cf9c36f799deff4dace250cdb18e28a3b90", - "s": "773318a93da2e32c1cf308ddd6add1e8c0d285973e541520a05fb4dc720e4fb1", - "v": "2908", - }); - })); -});